Add a dynamic ray-cast vehicle controller

This commit is contained in:
Sébastien Crozet
2022-12-04 18:27:38 +01:00
parent 87feb3a48d
commit 849f398031
6 changed files with 1060 additions and 1 deletions

View File

@@ -146,6 +146,12 @@ impl RigidBody {
}
}
/// The world-space center-of-mass of this rigid-body.
#[inline]
pub fn center_of_mass(&self) -> &Point<Real> {
&self.mprops.world_com
}
/// The mass-properties of this rigid-body.
#[inline]
pub fn mass_properties(&self) -> &MassProperties {