I am not able to add an event listener to a flycontrols.js instance in three.js -
i switched controls in script writing trackball controls fly controls. added event handler trackballcontrols without problem.
controls.addeventlistener( 'change', function () { camerachanged = true; signals.camerachanged.dispatch( camera ); render(); } );
however when tried add event listener flycontrols instance received error:
object [object object] has no method 'addeventlistener'
i assume flycontrols class doesn't have mechanism add event listeners. wondering how go adding it.
flycontrols
doesn't have eventdispatcher
implemented.
Comments
Post a Comment