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