Added nameplates and generated models

This commit is contained in:
2023-12-01 11:23:37 +01:00
parent 59d6b0bd45
commit a98080339f
10 changed files with 586 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ document.addEventListener('keyup', PlayerMovement.handleKeyUp);
//We can add an animationMixer on objects, and define ready to play actions on objects
//https://threejs.org/docs/#api/en/animation/AnimationAction
Animations.addAnimationMixerOnMesh(assets.player, ["Walk"]);
Animations.addAnimationMixerOnMesh(assets.nameplateModel, ["Float"]);assets.nameplateModel.animationActions.Float.play();
function animate() {