So I’ve got a rotation value(in radians) and I want the object to be rotated by that value around it’s local Z axis. No matter how it’s rotated, it must be it’s default local orientation + the given value around local z axis. How is it possible to do this?
Modify the euler localOrientation z component, or use applyRotation((0,0,theta), True)
I tried modifying the eulers z rotation. It didn’t work. It didn’t rotate it around local z axis, but rather around global z axis(don’t ask why, I am sure that I used localOrientation). When using applyRotation, I need to have the delta rotation value not the final relative rotation to it’s standart position in relation to parent. This won’t work aswell…
Hm… I got it. I must use reference object. I than on init reset the orientation to match reference object. And than use applyRotation(). That may work.