From 95bc486f7c217d1fa9c7e1809235081439273257 Mon Sep 17 00:00:00 2001 From: AdamWhitehurst Date: Wed, 1 Apr 2020 06:42:56 -0700 Subject: [PATCH] Roll move_dir handling 1.5 -> 0.25 --- common/src/states/roll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/states/roll.rs b/common/src/states/roll.rs index 292f81c7b2..420f06cf0b 100644 --- a/common/src/states/roll.rs +++ b/common/src/states/roll.rs @@ -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;