From 276d5359cd4e6563b573d75c5896cde1a5cb22cd Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Fri, 12 Apr 2019 23:20:08 +0100 Subject: [PATCH] Fixed player speed Former-commit-id: becc175a91cd60a8957baa8eaaab35f740f677ed --- client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index c98a01b746..a2e3648bea 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -153,7 +153,7 @@ impl Client { // TODO: remove this const PLAYER_VELOCITY: f32 = 100.0; // TODO: Set acceleration instead - self.state.write_component(ecs_entity, comp::phys::Vel(Vec3::from(input.move_dir * PLAYER_VELOCITY))); + self.state.write_component(ecs_entity, comp::phys::Vel(Vec3::from(input.move_dir * PLAYER_VELOCITY) * 0.1)); if input.move_dir.magnitude() > 0.01 { self.state.write_component(ecs_entity, comp::phys::Dir(input.move_dir.normalized().into())); }