Method b3Body_ApplyTorque
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Body_ApplyTorque(b3BodyId, Vector3, NativeBool)
Apply a torque. This affects the angular velocity without affecting the linear velocity. This optionally wakes the body. The torque is ignored if the body is not awake.
public static extern void b3Body_ApplyTorque(b3BodyId bodyId, Vector3 torque, NativeBool wake)Parameters
bodyIdb3BodyId-
The body id
torqueVector3-
the world torque vector, usually in N*m.
wakeNativeBool-
also wake up the body