As title.
I try to rotate a group by animationMixer.
but after i set “this.mixer=mixer”, the self.mixer condition still false.
i ensure i bind this by const self.
Is there any problem with this sentence?
Thanks All.
As title.
I try to rotate a group by animationMixer.
but after i set “this.mixer=mixer”, the self.mixer condition still false.
i ensure i bind this by const self.
Is there any problem with this sentence?
Thanks All.
Without the possibility to try the code, some guesses are:
this
in animate
and this
in doRotateByCubeArray
have different valuesanimate
is called before doRotateByCubeArray
, so this.mixer
is not set yetYou can check which of the three guesses is correct by printing their values:
animate( ) {
console.log( 'animate', this );
:
}
doRotateByCubeArray(...) {
console.log( 'doRotateByCubeArray', this );
:
}
i solve it thanks!!
i setMixer to another class
then i bind it to work!