ForceEffectOnApply Method |
Namespace: DigitalRune.Physics.ForceEffects
Notes to Inheritors: This method must be implemented in derived classes. This method is only called after the force effect was added to a simulation and OnAddToSimulation was called.
This method is responsible for applying the forces of the effect to the rigid bodies. To apply a force the methods AddForce(RigidBody, Vector3F, Vector3F), AddForce(RigidBody, Vector3F) and/or AddTorque(RigidBody, Vector3F) of the ForceEffect base class must be used. Do not use the AddForce/AddTorque methods of the RigidBody class.