Documentation
    Preparing search index...

    Function toRapierRotation3

    • Converts a RotationInput to Rapier's quaternion form (§7a, §21).

      A Quaternion is copied component for component; a number is radians about +Z and becomes (0, 0, sin(θ/2), cos(θ/2)). resolveRotation performs both conversions, so a 3D world and a 2D world agree on what a scalar angle means.

      scratch is the caller's reusable Quaternion; out is the Rapier record that is filled and returned (§7b, D7).

      Parameters

      Returns RapierRotation3