From dac228d7330f3d63707e50c55e6767fdb2724b2b Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Thu, 12 Oct 2023 17:43:29 +0100 Subject: [PATCH] Account for tilting for foot orientation --- voxygen/anim/src/character/run.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voxygen/anim/src/character/run.rs b/voxygen/anim/src/character/run.rs index a1a3809825..6a2f30f2df 100644 --- a/voxygen/anim/src/character/run.rs +++ b/voxygen/anim/src/character/run.rs @@ -177,7 +177,7 @@ impl Animation for RunAnimation { next.foot_l.orientation = Quaternion::rotation_x( (1.0 - sideabs) * (-0.3 + foothoril * -1.5 * speednorm) + sideabs * -0.5, ) * Quaternion::rotation_y( - tilt * 2.0 + side * 0.3 + side * (foothoril * 0.3), + tilt * -0.5 + side * 0.3 + side * (foothoril * 0.3), ) * Quaternion::rotation_z(side * 0.2); next.foot_r.position = Vec3::new( @@ -193,7 +193,7 @@ impl Animation for RunAnimation { next.foot_r.orientation = Quaternion::rotation_x( (1.0 - sideabs) * (-0.3 + foothorir * -1.5 * speednorm) + sideabs * -0.5, ) * Quaternion::rotation_y( - tilt * 2.0 + side * 0.3 + side * (foothorir * 0.3), + tilt * -0.5 + side * 0.3 + side * (foothorir * 0.3), ) * Quaternion::rotation_z(side * 0.2); //