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
bodyIdb3BodyId-
The body id
forceVector3-
The world force vector, usually in newtons (N)
pointVector3-
The world position of the point of application
wakeNativeBool-
Option to wake up the body