Omit integrate_accelerations in feature = parallel

This commit is contained in:
Emil Ernerfeldt
2021-02-04 09:59:36 +01:00
parent d999e0e8c6
commit e870acf011

View File

@@ -141,6 +141,7 @@ impl RigidBody {
}
}
#[cfg(not(feature = "parallel"))] // in parallel solver this is not needed
pub(crate) fn integrate_accelerations(&mut self, dt: Real) {
let linear_acc = self.force * self.effective_inv_mass;
let angular_acc = self.effective_world_inv_inertia_sqrt