(i don't think EZ rotate has this functionality, and i don't wanna get EZ rotate anyways, so don't just post "Get EZ rotate!")
After reading a post about a sonic the hedgehog style game, i now want to try to make one of my own.
Basically, this is what i want to be able to do - position "sonic" perpendicular to the surface he is standing on, and be able to rotate him 360 degrees while perpendicular to that surface.
I figure that the place to start would be getting the top of sonic to point towards the normal of the surface.
So, i'm pretty sure that this would define what i want:
I've worked it out that far... but i've never worked with trigonometry like this before. I know that i'm looking for a trigonometric identity, but i don't know which one! Does anyone have a solution to this problem (or a workaround of some kind)