Is there a way to rotate an object in three-dimensional space using THREEJs?
I've been trying the code below but it doesn't seem to work. Can anyone spot what I might be doing incorrectly?
object.matrixAutoUpdate = false;
const matrix = object.matrixWorld.makeRotationFromQuaternion( worldQuaternion );
object.setRotationFromMatrix( matrix );
object.updateMatrix();