| ForceEffectAddTorque Method |
Applies a torque to the rigid body at the center of mass.
Namespace: DigitalRune.Physics.ForceEffectsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax protected static void AddTorque(
RigidBody body,
Vector3F torqueWorld
)
Protected Shared Sub AddTorque (
body As RigidBody,
torqueWorld As Vector3F
)
protected:
static void AddTorque(
RigidBody^ body,
Vector3F torqueWorld
)
static member AddTorque :
body : RigidBody *
torqueWorld : Vector3F -> unit
Parameters
- body
- Type: DigitalRune.PhysicsRigidBody
The rigid body. - torqueWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The torque in world space.
See Also