Table of Contents

Method b3Body_SetTargetTransform

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

b3Body_SetTargetTransform(b3BodyId, b3Transform, float, NativeBool)

Set the velocity to reach the given transform after a given time step. The result will be close but maybe not exact. This is meant for kinematic bodies. The target is not applied if the velocity would be below the sleep threshold. This will optionally wake the body if asleep, but only if the movement is significant.

public static extern void b3Body_SetTargetTransform(b3BodyId bodyId, b3Transform target, float timeStep, NativeBool wake)

Parameters

bodyId b3BodyId

See the Box3D documentation.

target b3Transform

See the Box3D documentation.

timeStep float

See the Box3D documentation.

wake NativeBool

See the Box3D documentation.