Problems with rotating and all the stuff

Feb 6, 2010 at 3:07 PM


I have some new questions:

I want to realize more or less exactly the same camera steering as in Assassin's Creed (in case you know it).
For this i have to rotate my player. How cann I realize a continuous rotation while "a" is pressed?
What do I have to do for rotating a certain amout of degrees? For example a 180 rotation?



Feb 6, 2010 at 8:50 PM

working on it :D will post source when i have it done

Feb 7, 2010 at 12:10 AM

try this, dont know if this is what you meant. its kinda simple tbh, but you can change the speed and required angle in the initialisation.


Feb 8, 2010 at 6:00 PM

oh yeah, that is great but I forgot to say that I want to rotate a Component. But it should be easy according to your code.



Feb 8, 2010 at 7:40 PM

If you simply want to create orientation matrices from eular angles, check out the nice Ox.Engine.Math.EularOrientation class. It's very powerful and handy.