diff options
| author | Jakub Arnold <darthdeus@gmail.com> | 2021-11-13 18:42:51 +0100 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2021-12-31 10:04:29 +0100 |
| commit | 64e5a988331aaa292ea5f62c5033082a51d90d8a (patch) | |
| tree | 7083173cd770a5b2337de150a628443c93a0ca07 /src | |
| parent | 8fa66538207cff6db0a840ec8bd08634dc969e13 (diff) | |
| download | rapier-64e5a988331aaa292ea5f62c5033082a51d90d8a.tar.gz rapier-64e5a988331aaa292ea5f62c5033082a51d90d8a.tar.bz2 rapier-64e5a988331aaa292ea5f62c5033082a51d90d8a.zip | |
Minor documentation fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 2 | ||||
| -rw-r--r-- | src/geometry/collider.rs | 4 |
2 files changed, 3 insertions, 3 deletions
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<Real> { &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<Real> { &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<Real> { &self.co_pos.0.rotation } |
