| ForceEffectAddForce Method (RigidBody, Vector3F, Vector3F) |
Applies a force to the rigid body.
Namespace: DigitalRune.Physics.ForceEffectsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax protected static void AddForce(
RigidBody body,
Vector3F forceWorld,
Vector3F positionWorld
)
Protected Shared Sub AddForce (
body As RigidBody,
forceWorld As Vector3F,
positionWorld As Vector3F
)
protected:
static void AddForce(
RigidBody^ body,
Vector3F forceWorld,
Vector3F positionWorld
)
static member AddForce :
body : RigidBody *
forceWorld : Vector3F *
positionWorld : Vector3F -> unit
Parameters
- body
- Type: DigitalRune.PhysicsRigidBody
The rigid body. - forceWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The force in world space. - positionWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The world space position where the force is a applied on the body.
See Also