mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Shift feet due to run tilt
This commit is contained in:
parent
dac228d733
commit
eab9e0e047
@ -165,7 +165,7 @@ impl Animation for RunAnimation {
|
||||
|
||||
//
|
||||
next.foot_l.position = Vec3::new(
|
||||
-s_a.foot.0 + footstrafel * sideabs * 3.0 + tilt * -2.0,
|
||||
-s_a.foot.0 + footstrafel * sideabs * 3.0 + tilt * -10.0,
|
||||
s_a.foot.1
|
||||
+ (1.0 - sideabs) * (-0.5 * speednorm + foothoril * -10.5 * speednorm)
|
||||
+ (direction * 5.0).max(0.0),
|
||||
@ -181,7 +181,7 @@ impl Animation for RunAnimation {
|
||||
) * Quaternion::rotation_z(side * 0.2);
|
||||
|
||||
next.foot_r.position = Vec3::new(
|
||||
s_a.foot.0 + footstrafer * sideabs * 3.0 + tilt * -2.0,
|
||||
s_a.foot.0 + footstrafer * sideabs * 3.0 + tilt * -10.0,
|
||||
s_a.foot.1
|
||||
+ (1.0 - sideabs) * (-0.5 * speednorm + foothorir * -10.5 * speednorm)
|
||||
+ (direction * 5.0).max(0.0),
|
||||
|
Loading…
Reference in New Issue
Block a user