rendered paste body
RobotNode.rotate(1.0 , 1.0 , 1.0, 92.444 , TS_WORLD )
Global IDENTITY:TQuaternion = TQuaternion.Create( 1.0 , 0.0 , 0.0 , 0.0 )
'Give it a rotation.
robotnode.pitch(10,ts_world)
robotnode.yaw(33,ts_world)
robotnode.yaw(80,ts_world)
mainCamera.lookat(0,40,0)
Repeat
Ogre.RenderOneFrame()
Global thetaPitch:Float = RobotNode.getOrientation().getPitch().valueDegrees()
Global thetaYaw:Float = RobotNode.getOrientation().getYaw().valueDegrees()
Global thetaRoll:Float = RobotNode.getOrientation().getRoll().valueDegrees()
RobotNode.setOrientation( IDENTITY )
RobotNode.rotate( 1.0 , 0.0 , 0.0 ,thetapitch , TS_WORLD )
RobotNode.rotate( 0.0 , 1.0 , 0.0 , thetayaw, TS_WORLD )
RobotNode.rotate( 0.0 , 0.0 , 1.0 , thetaroll, TS_WORLD )
Print("Pitch: " +thetaPitch+ " Yaw: "+thetaYaw+ " Roll: "+thetaRoll )
Delay 1000/60
Until KeyDown(KEY_ESCAPE)