Maybe Gimbal Lock.
I cannot help you with your code. But when I need something like turn I am writing something like this:
edit:
or with out the local
I cannot help you with your code. But when I need something like turn I am writing something like this:
Function Turn(LNode:T_irrISceneNode , TurnX# , TurnY# , TurnZ#) Local Turn:T_irrVector3df = T_irrVector3df.createFromVals(TurnX , TurnY , TurnZ) LNode.setRotation(LNode.getRotation().Plus(Turn) ) End Function
edit:
or with out the local
Function Turn(LNode:T_irrISceneNode , TurnX# , TurnY# , TurnZ#) LNode.setRotation(LNode.getRotation().Plus(T_irrVector3df.createFromVals(TurnX , TurnY , TurnZ)) ) End Function