im am trying to make a kind of compess thing, in a game, to point the player where to go. got the overlay all figured out if i can subtract the players z axis orientation from the compesses. im using 2.49 because some of my scripts are 2.49 scripts and i don’t want tos start over. here is what i have
controller = GameLogic.getCurrentController() p1 = controller.getOwner() Slist = GameLogic.getSceneList() Game = Slist p2 = Game.getObjectList()["OBArrow"] p3 = Game.getObjectList()["OBp1"] p2rot = p2.worldOrientation p3rot = p3.worldOrientation p1.setOrientation(p2rot)
I wan’t to subtract p2rot from p3rot on just the z axis.
i don’t realy understand how the orientation works. ive tried converting to euler but it has not worked. can someone explain to me how the orientation lists work. Why do they need 9 numbers? what are they used for? is there a way to single out just the z axis?