Complete the pfm/pfm contact generator.

This commit is contained in:
Crozet Sébastien
2020-10-19 16:51:40 +02:00
parent faf3e7e0f7
commit 947c4813c9
14 changed files with 166 additions and 182 deletions

View File

@@ -218,6 +218,7 @@ impl RigidBody {
let shift = Translation::from(com.coords);
shift * Isometry::new(self.linvel * dt, self.angvel * dt) * shift.inverse()
}
pub(crate) fn integrate(&mut self, dt: f32) {
self.position = self.integrate_velocity(dt) * self.position;
}
@@ -334,7 +335,7 @@ impl RigidBody {
}
}
/// A builder for rigid-bodies.
/// A builder for rigid-bodies.
pub struct RigidBodyBuilder {
position: Isometry<f32>,
linvel: Vector<f32>,