Click or drag to resize
DigitalRuneBuoyancyApply Method
Applies the force effect to the specified body.

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

Parameters

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

Notes to Inheritors: This method is responsible for applying the forces of the effect to a rigid body. 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