Minor documentation fixes
This commit is contained in:
committed by
Sébastien Crozet
parent
8fa6653820
commit
64e5a98833
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user