mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Account for tilting for foot orientation
This commit is contained in:
parent
ecc2991ef5
commit
dac228d733
@ -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);
|
||||
//
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user