BuoyancyPrepare Method |
Namespace: DigitalRune.Physics.ForceEffects
Exception | Condition |
---|---|
ArgumentNullException | body is . |
This method is automatically called for each body that touches the water. It computes additional information per rigid body that is needed for the buoyancy effect.
To prepare the rigid bodies ahead of time, this method can be called manually - but this is not required. It is sufficient to call this method once per rigid body, then the body is prepared for all buoyancy effect instances.