diff --git a/common/src/comp/ori.rs b/common/src/comp/ori.rs index 86e02448e1..351db07066 100644 --- a/common/src/comp/ori.rs +++ b/common/src/comp/ori.rs @@ -38,6 +38,10 @@ impl Ori { /// Look direction as a vector (no pedantic normalization performed) pub fn look_vec(self) -> Vec3 { self.to_quat() * *Dir::default() } + /// Get the internal quaternion representing the rotation from + /// `Dir::default()` to this orientation. + /// + /// The operation is a cheap copy. pub fn to_quat(self) -> Quaternion { debug_assert!(self.is_normalized()); self.0