irrlicht camerascenenode problem

BlitzMax Forums/BlitzMax Programming/irrlicht camerascenenode problem

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Maybe Gimbal Lock.
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