Merge pull request #104 from EmbarkStudios/clippy-fixes

Make clippy a bit happier
This commit is contained in:
Sébastien Crozet
2021-02-04 18:20:27 +01:00
committed by GitHub
15 changed files with 48 additions and 33 deletions

View File

@@ -304,7 +304,7 @@ impl RigidBody {
}
fn integrate_velocity(&self, dt: Real) -> Isometry<Real> {
let com = &self.position * self.mass_properties.local_com;
let com = self.position * self.mass_properties.local_com;
let shift = Translation::from(com.coords);
shift * Isometry::new(self.linvel * dt, self.angvel * dt) * shift.inverse()
}