Click or drag to resize
DigitalRuneBuoyancyPrepare Method
Prepares the specified rigid body for the buoyancy effect.

Namespace: DigitalRune.Physics.ForceEffects
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public static void Prepare(
	RigidBody body
)

Parameters

body
Type: DigitalRune.PhysicsRigidBody
The rigid body.
Exceptions
ExceptionCondition
ArgumentNullExceptionbody is .
Remarks

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.

See Also