Added nameplates and generated models
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user