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
bodyIdb3BodyId-
See the Box3D documentation.
targetb3Transform-
See the Box3D documentation.
timeStepfloat-
See the Box3D documentation.
wakeNativeBool-
See the Box3D documentation.