BEPUphysics.OtherSpaceStages.ForceUpdater.ForceUpdateableBecomingKinematic C# (CSharp) Method

ForceUpdateableBecomingKinematic() public method

Notifies the system that a force updateable is becoming kinematic.
public ForceUpdateableBecomingKinematic ( IForceUpdateable updateable ) : void
updateable IForceUpdateable Updateable changing state.
return void
        public void ForceUpdateableBecomingKinematic(IForceUpdateable updateable)
        {
            //This does not verify that it used to be dynamic.  Small room for unsafety.
            if (updateable.ForceUpdater == this)
            {
                if (!dynamicObjects.Remove(updateable))
                    throw new Exception("Dynamic object not present in dynamic objects list; ensure that the IVelocityUpdateable was never removed from the list improperly by using VelocityUpdateableBecomingKinematic.");
            }
            else
                throw new Exception("Updateable does not belong to this manager.");
        }
    }