Documentation
    Preparing search index...

    Function toRapierAngle

    • 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.

      Parameters

      Returns number