Rotate around local pivot


Hi everyone, i’m change local pivot axis direction.
And i’m trying rotate object around Z axis using setRotation(0,0,0) , but when i call this method object rotate not correct. What i’m doing wrong?


I know I’m just ignoring the question, but how about rigging the model?
and control the rig with mesh groups?


Have you checked the local axis? Maybe in your screen view global axis is selected an because of it the direction arrows facing the “wrong” direction.


Try using:

var Vec4 = iron.math.Vec4;
object.transform.rotate(Vec4.zAxis(), 1.5708);

Note: 1.5708 is a radians value, this equal to 90*. If u don’t know how to convert degrees to radians simply google search it).
Check this documentation -->