![]() | PhysicalBodyUseExplicitCenterOfMassWhenLoaded Method |
Makes the Rigidbody.centerOfMass property on Rigidbody use the explicit value serialized in the backing field for CenterOfMass when this objet is first loaded. Neither it nor Rigidbody.inertiaTensor will be automatically/continuously calculated anymore.
This method only exists for enabling explicit center of mass before this object is loaded (e.g., in the editor). Setting CenterOfMass at run-time will cause the explicitly specified value to be used whether or not this method has been called.
Namespace: Candlelight.Physics
public void UseExplicitCenterOfMassWhenLoaded()