Converts a RotationInput to Rapier's scalar angle in radians (§7a,
§21).
A number passes through unchanged (it is already an angle about +Z); a
Quaternion must be a pure Z rotation and becomes 2 · atan2(z, w). The
plane check is @fourjs/physics's resolveRotation, so the adapter and the
engine reject exactly the same values.
Converts a RotationInput to Rapier's scalar angle in radians (§7a, §21).
A
numberpasses through unchanged (it is already an angle about +Z); aQuaternionmust be a pure Z rotation and becomes2 · atan2(z, w). The plane check is@fourjs/physics'sresolveRotation, so the adapter and the engine reject exactly the same values.