Method b3Body_ApplyAngularImpulse
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Body_ApplyAngularImpulse(b3BodyId, Vector3, NativeBool)
Apply an angular impulse in world space. The impulse is ignored if the body is not awake. This optionally wakes the body.
public static extern void b3Body_ApplyAngularImpulse(b3BodyId bodyId, Vector3 impulse, NativeBool wake)Parameters
bodyIdb3BodyId-
The body id
impulseVector3-
the world angular impulse vector, usually in units of kgmm/s
wakeNativeBool-
also wake up the body
Remarks
Warning: This should be used for one-shot impulses. If you need a steady torque, @warning This should be used for one-shot impulses. If you need a steady torque, use a torque instead, which will work better with the sub-stepping solver.