allow generic objects animation filtering
This commit is contained in:
@@ -94,7 +94,7 @@ class GameEngine extends EventManager{
|
||||
|
||||
if (this.opts.gizmo) {
|
||||
this.orbitControls = new OrbitControls(this.camera, this.renderer.domElement);
|
||||
this.orbitControls.enableZoom = false;
|
||||
//this.orbitControls.enableZoom = false;
|
||||
const gizmo = new ViewportGizmo(this.camera, this.renderer, {
|
||||
container: '.renderer-gizmo',
|
||||
//type:'cube'
|
||||
@@ -501,8 +501,8 @@ class GameEngine extends EventManager{
|
||||
|
||||
playAnimation(object, clip, play = true) {
|
||||
let action = this.mixers[0].clipAction(clip, object);
|
||||
if (play) action.play();
|
||||
else action.stop();
|
||||
action[play ? 'play' : 'stop']();
|
||||
return action;
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
||||
Reference in New Issue
Block a user