setBodyPose method

void setBodyPose(
  1. int bodyHandle,
  2. Vector3 translation,
  3. Quaternion rotation
)

Teleports a body to a pose immediately, waking it. No velocity is integrated from the displacement; meant for rollback correction on top of a restore. Throws UnsupportedError on backends without it.

Implementation

void setBodyPose(int bodyHandle, Vector3 translation, Quaternion rotation) =>
    throw UnsupportedError('$backendName has no body teleport');