KAS.KASModulePhysicChild.StopPhysics C# (CSharp) Method

StopPhysics() public method

Stops physics handling on the object.
Rigidbody on the object gets destroyed.
public StopPhysics ( ) : void
return void
        public void StopPhysics()
        {
            KAS_Shared.DebugLog("StopPhysics(PhysicChild)");
            if (physicObj != null) {
              UnityEngine.Object.Destroy(physicObjRb);
              physicObjRb = null;
              physicObj.transform.parent = part.transform;
              physicObj = null;
            } else {
              KAS_Shared.DebugWarning("StopPhysics(PhysicChild) Physic already stopped! Ignore.");
            }
        }