How do i rotate a Object3D relative to it's originally fixed axis? Like for example if i want to rotate without jPCT i call
gl.glRotatef(xangle, 1, 0, 0) //rotate X axis
gl.glRotatef(yangle, 0, 1, 0) //rotate Y axis
Meaning i will always let Z be unchanged.
If i use myObj.rotateX / myObj.rotateY i will end up with Z axis changed as well.
gl.glRotatef(xangle, 1, 0, 0) //rotate X axis
gl.glRotatef(yangle, 0, 1, 0) //rotate Y axis
Meaning i will always let Z be unchanged.
If i use myObj.rotateX / myObj.rotateY i will end up with Z axis changed as well.