change phase offset of running animation to +pi/2
This commit is contained in:
parent
a41f7f3a96
commit
e7a9267b9c
|
|
@ -162,7 +162,7 @@ export const WalkingAnimation: Animation = (player, time) => {
|
||||||
export const RunningAnimation: Animation = (player, time) => {
|
export const RunningAnimation: Animation = (player, time) => {
|
||||||
const skin = player.skin;
|
const skin = player.skin;
|
||||||
|
|
||||||
time *= 15;
|
time = time * 15 + Math.PI * 0.5;
|
||||||
|
|
||||||
// Leg swing with larger amplitude
|
// Leg swing with larger amplitude
|
||||||
skin.leftLeg.rotation.x = Math.cos(time + Math.PI) * 1.3;
|
skin.leftLeg.rotation.x = Math.cos(time + Math.PI) * 1.3;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue