moveKinematic method

  1. @override
void moveKinematic(
  1. int body,
  2. Vector3 position,
  3. Quaternion rotation,
  4. double dt,
)
override

Moves a kinematic body so it arrives at position and rotation after dt seconds, giving it the velocity that takes.

Implementation

@override
void moveKinematic(
  int body,
  Vector3 position,
  Quaternion rotation,
  double dt,
) {
  if (!_moving(body) || dt <= 0) return;
  JPH_BodyInterface_MoveKinematic(
    _bodyInterface,
    _id(body),
    _vec(_v1, position),
    _quat(rotation),
    dt,
  );
}