Table of Contents

Method b3Body_ApplyLinearImpulse

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3Body_ApplyLinearImpulse(b3BodyId, Vector3, Vector3, NativeBool)

Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of application is not at the center of mass. This optionally wakes the body. The impulse is ignored if the body is not awake.

public static extern void b3Body_ApplyLinearImpulse(b3BodyId bodyId, Vector3 impulse, Vector3 point, NativeBool wake)

Parameters

bodyId b3BodyId

The body id

impulse Vector3

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

point Vector3

the world position of the point of application.

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.