mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Deref instead of clone vel
This commit is contained in:
@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys {
|
|||||||
.flatten()
|
.flatten()
|
||||||
.flatten();
|
.flatten();
|
||||||
|
|
||||||
let old_vel = vel.clone();
|
let old_vel = *vel;
|
||||||
// Integrate forces
|
// Integrate forces
|
||||||
// Friction is assumed to be a constant dependent on location
|
// Friction is assumed to be a constant dependent on location
|
||||||
let friction = if physics_state.on_ground {
|
let friction = if physics_state.on_ground {
|
||||||
|
Reference in New Issue
Block a user