From 64e5a988331aaa292ea5f62c5033082a51d90d8a Mon Sep 17 00:00:00 2001 From: Jakub Arnold Date: Sat, 13 Nov 2021 18:42:51 +0100 Subject: Minor documentation fixes --- src/dynamics/rigid_body.rs | 2 +- src/geometry/collider.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index de11e15..77ad48d 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -490,7 +490,7 @@ impl RigidBody { } } - /// The translational part of this rigid-body's position. + /// The rotational part of this rigid-body's position. #[inline] pub fn rotation(&self) -> &Rotation { &self.rb_pos.position.rotation diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 9f2cd2b..f9088b3 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -159,12 +159,12 @@ impl Collider { &self.co_pos } - /// The translational part of this rigid-body's position. + /// The translational part of this collider's position. pub fn translation(&self) -> &Vector { &self.co_pos.0.translation.vector } - /// The rotational part of this rigid-body's position. + /// The rotational part of this collider's position. pub fn rotation(&self) -> &Rotation { &self.co_pos.0.rotation } -- cgit