docs: update rotation to reflect radians
This commit is contained in:
1 parent
284476dac7
commit
20c1d2c0c8
1 file changed
+2
@@ -18,6 +18,8 @@ pub struct MeshInstance {
|
|||||||
/// The rotation of the instance. Note that since this is a [`Vector4`], or Euler angle, it
|
/// The rotation of the instance. Note that since this is a [`Vector4`], or Euler angle, it
|
||||||
/// suffers from gimbal lock. If this becomes a serious issue, an [`nalgebra::UnitQuaternion`]
|
/// suffers from gimbal lock. If this becomes a serious issue, an [`nalgebra::UnitQuaternion`]
|
||||||
/// should be used instead.
|
/// should be used instead.
|
||||||
|
///
|
||||||
|
/// This value is in radians.
|
||||||
pub rotation: Vector4<f32>,
|
pub rotation: Vector4<f32>,
|
||||||
/// The scale of the instance, represented as the scaling in XYZ coordinates.
|
/// The scale of the instance, represented as the scaling in XYZ coordinates.
|
||||||
pub scale: Vector3<f32>,
|
pub scale: Vector3<f32>,
|
||||||
|
|||||||
Reference in new issue
Block a user