Table of Contents

Method b3Body_ApplyForce

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

b3Body_ApplyForce(b3BodyId, Vector3, Vector3, NativeBool)

Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This optionally wakes up the body. The force is ignored if the body is not awake.

public static extern void b3Body_ApplyForce(b3BodyId bodyId, Vector3 force, Vector3 point, NativeBool wake)

Parameters

bodyId b3BodyId

The body id

force Vector3

The world force vector, usually in newtons (N)

point Vector3

The world position of the point of application

wake NativeBool

Option to wake up the body