mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Roll move_dir handling 1.5 -> 0.25
This commit is contained in:
parent
56fab6db09
commit
95bc486f7c
@ -22,7 +22,7 @@ impl CharacterBehavior for Data {
|
||||
// Update velocity
|
||||
update.vel.0 = Vec3::new(0.0, 0.0, update.vel.0.z)
|
||||
+ (update.vel.0 * Vec3::new(1.0, 1.0, 0.0)
|
||||
+ 1.5 * data.inputs.move_dir.try_normalized().unwrap_or_default())
|
||||
+ 0.25 * data.inputs.move_dir.try_normalized().unwrap_or_default())
|
||||
.try_normalized()
|
||||
.unwrap_or_default()
|
||||
* ROLL_SPEED;
|
||||
|
Loading…
Reference in New Issue
Block a user