Click or drag to resize
DigitalRuneConstraint.OnAddToSimulation Method
Called when this constraint is added to a simulation.

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
protected virtual void OnAddToSimulation()
Exceptions
ExceptionCondition
PhysicsExceptionBodyA or BodyB is null. The constraint bodies must not be null when a constraint/joint is added to a simulation.
Remarks

The simulation to which the constraint is added is set in the property Simulation.

Notes to Inheritors: When overriding OnAddToSimulation() in a derived class, be sure to call the base class's OnAddToSimulation() method.

See Also