Table of Contents

Method b3Body_ApplyForceToCenter

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

b3Body_ApplyForceToCenter(b3BodyId, Vector3, NativeBool)

Apply a force to the center of mass. This optionally wakes up the body. The force is ignored if the body is not awake.

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

Parameters

bodyId b3BodyId

The body id

force Vector3

the world force vector, usually in newtons (N).

wake NativeBool

also wake up the body