Deref instead of clone vel

This commit is contained in:
Andrew Pritchard 2019-09-06 14:22:58 +08:00
parent b4c74279b7
commit 05dff792fc

View File

@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys {
.flatten()
.flatten();
let old_vel = vel.clone();
let old_vel = *vel;
// Integrate forces
// Friction is assumed to be a constant dependent on location
let friction = if physics_state.on_ground {