Click or drag to resize
DigitalRuneDampedSpringOnApply Method
Called when the simulation wants this force effect to apply forces to rigid bodies.

Namespace: DigitalRune.Physics.ForceEffects
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
protected override void OnApply()
Remarks

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.

See Also