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).
Converts a RotationInput to Rapier's quaternion form (§7a, §21).
A
Quaternionis copied component for component; anumberis radians about +Z and becomes(0, 0, sin(θ/2), cos(θ/2)).resolveRotationperforms both conversions, so a 3D world and a 2D world agree on what a scalar angle means.scratchis the caller's reusableQuaternion;outis the Rapier record that is filled and returned (§7b, D7).