Table of Contents

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

bodyId b3BodyId

The body id

impulse Vector3

the world impulse vector, usually in Ns or kgm/s.

wake NativeBool

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.