Table of Contents

Method b3Body_SetTransform

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

b3Body_SetTransform(b3BodyId, Vector3, Quaternion)

Set the world transform of a body. This acts as a teleport and is fairly expensive.

public static extern void b3Body_SetTransform(b3BodyId bodyId, Vector3 position, Quaternion rotation)

Parameters

bodyId b3BodyId

See the Box3D documentation.

position Vector3

See the Box3D documentation.

rotation Quaternion

See the Box3D documentation.

Remarks

Note: Generally you should create a body with the intended transform. @note Generally you should create a body with the intended transform. See b3BodyDef::position and b3BodyDef::rotation. @see b3BodyDef::position and b3BodyDef::rotation.