Absolutely ! In my previous PG I use mesh.rotate, but the third param is the BABYLON.Space
, which is GLOBAL
by default, but you can set it to LOCAL
.
Example here, setting a random rotatio around Y, after the absolute initial rotation :
this.box.rotate(new BABYLON.Vector3(0,1,0), 2*Math.PI*Math.random(), BABYLON.Space.LOCAL)