If I rotate a mesh using the rotate() function the Mesh.rotation value is set to zero.
Bug or expected behavior ?
See
http://www.babylonjs-playground.com/#1A70YP
Regards
It's not a bug, it's a feature
Joke aside, it's because you can rotate meshes in two different ways:
- with '.rotation'
- with '.rotationQuaternion'
mesh.rotate uses the rotationQuaternion attribute : when this atribute is set, rotation is completely ignored.