mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed player speed
Former-commit-id: becc175a91cd60a8957baa8eaaab35f740f677ed
This commit is contained in:
parent
51f7d85508
commit
276d5359cd
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user