Support diving and climbing locomotion modes in runner logic
This commit is contained in:
@@ -2002,6 +2002,10 @@ function formatRunnerLocomotionMode(
|
|||||||
return "Flying";
|
return "Flying";
|
||||||
case "swimming":
|
case "swimming":
|
||||||
return "Swimming";
|
return "Swimming";
|
||||||
|
case "diving":
|
||||||
|
return "Diving";
|
||||||
|
case "climbing":
|
||||||
|
return "Climbing";
|
||||||
default:
|
default:
|
||||||
return "n/a";
|
return "n/a";
|
||||||
}
|
}
|
||||||
@@ -2134,6 +2138,10 @@ function formatRunnerAnimationHook(
|
|||||||
return `swim ${animationHook.movementAmount.toFixed(2)}`;
|
return `swim ${animationHook.movementAmount.toFixed(2)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (animationHook.locomotionMode === "climbing") {
|
||||||
|
return `climb ${animationHook.movementAmount.toFixed(2)}`;
|
||||||
|
}
|
||||||
|
|
||||||
return animationHook.moving
|
return animationHook.moving
|
||||||
? `${animationHook.gait} ${animationHook.movementAmount.toFixed(2)}`
|
? `${animationHook.gait} ${animationHook.movementAmount.toFixed(2)}`
|
||||||
: "idle";
|
: "idle";
|
||||||
|
|||||||
Reference in New Issue
Block a user