run anim tweaks

This commit is contained in:
jshipsey 2021-01-16 14:15:01 -05:00
parent 559ece5ede
commit 31208e29ee
2 changed files with 14 additions and 14 deletions

View File

@ -37,11 +37,11 @@
),
(Sahagin, Male): (
hand_l: (
offset: (0.0, -2.5, -11.0),
offset: (0.0, -4.0, -11.0),
lateral: ("npc.sahagin.male.hand_l"),
),
hand_r: (
offset: (-7.0, -2.5, -11.0),
offset: (0.0, -4.0, -11.0),
lateral: ("npc.sahagin.male.hand_r"),
),
foot_l: (
@ -55,11 +55,11 @@
),
(Sahagin, Female): (
hand_l: (
offset: (0.0, -2.5, -11.0),
offset: (0.0, -4.0, -11.0),
lateral: ("npc.sahagin.male.hand_l"),
),
hand_r: (
offset: (-7.0, -2.5, -11.0),
offset: (-7.0, -4.0, -11.0),
lateral: ("npc.sahagin.male.hand_r"),
),
foot_l: (
@ -181,11 +181,11 @@
),
(Kappa, Male): (
hand_l: (
offset: (-3.0, -2.5, -10.0),
offset: (-3.0, -4.0, -10.0),
lateral: ("npc.kappa.male.hand_l"),
),
hand_r: (
offset: (-3.0, -2.5, -10.0),
offset: (-3.0, -4.0, -10.0),
lateral: ("npc.kappa.male.hand_r"),
),
foot_l: (
@ -199,11 +199,11 @@
),
(Kappa, Female): (
hand_l: (
offset: (-3.0, -2.5, -10.0),
offset: (-3.0, -4.0, -10.0),
lateral: ("npc.kappa.male.hand_l"),
),
hand_r: (
offset: (-3.0, -2.5, -10.0),
offset: (-3.0, -4.0, -10.0),
lateral: ("npc.kappa.male.hand_r"),
),
foot_l: (

View File

@ -116,8 +116,8 @@ impl Animation for RunAnimation {
next.hand_l.position = Vec3::new(
-s_a.hand.0 + footrotr * -1.3 * speednorm,
1.0 * speednorm + s_a.hand.1 + footrotr * -3.5 * speednorm,
1.5 * speednorm + s_a.hand.2 - footrotr * 2.5 * speednorm,
1.0 * speednorm + s_a.hand.1 + footrotr * -2.5 * speednorm,
s_a.hand.2 - footrotr * 1.5 * speednorm,
);
next.hand_l.orientation =
Quaternion::rotation_x(0.4 * speednorm + (footrotr * -1.2) * speednorm)
@ -125,8 +125,8 @@ impl Animation for RunAnimation {
next.hand_r.position = Vec3::new(
s_a.hand.0 + footrotl * 1.3 * speednorm,
1.0 * speednorm + s_a.hand.1 + footrotl * -3.5 * speednorm,
1.5 * speednorm + s_a.hand.2 - footrotl * 2.5 * speednorm,
1.0 * speednorm + s_a.hand.1 + footrotl * -2.5 * speednorm,
s_a.hand.2 - footrotl * 1.5 * speednorm,
);
next.hand_r.orientation =
Quaternion::rotation_x(0.4 * speednorm + (footrotl * -1.2) * speednorm)
@ -136,7 +136,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.1
+ (1.0 - sideabs) * (-1.0 * speednorm + footrotl * -7.5 * speednorm)
+ (1.0 - sideabs) * (-1.0 * speednorm + footrotl * -4.5 * speednorm)
+ (direction * 5.0).max(0.0),
s_a.foot.2
+ (1.0 - sideabs) * (2.0 * speednorm + ((footvertl * -2.1 * speednorm).max(-1.0)))
@ -151,7 +151,7 @@ impl Animation for RunAnimation {
next.foot_r.position = Vec3::new(
s_a.foot.0 + footstrafer * sideabs * 3.0 + tilt * -2.0,
s_a.foot.1
+ (1.0 - sideabs) * (-1.0 * speednorm + footrotr * -7.5 * speednorm)
+ (1.0 - sideabs) * (-1.0 * speednorm + footrotr * -4.5 * speednorm)
+ (direction * 5.0).max(0.0),
s_a.foot.2
+ (1.0 - sideabs) * (2.0 * speednorm + ((footvertr * -2.1 * speednorm).max(-1.0)))