Table of Contents

Method b3Body_ApplyTorque

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

b3Body_ApplyTorque(b3BodyId, Vector3, NativeBool)

Apply a torque. This affects the angular velocity without affecting the linear velocity. This optionally wakes the body. The torque is ignored if the body is not awake.

public static extern void b3Body_ApplyTorque(b3BodyId bodyId, Vector3 torque, NativeBool wake)

Parameters

bodyId b3BodyId

The body id

torque Vector3

the world torque vector, usually in N*m.

wake NativeBool

also wake up the body