Camera rotation

Advanced game related topics
Psych
Enthusiast
Enthusiast
Posts: 239
Joined: Thu Dec 18, 2008 3:35 pm
Location: Wales, UK

Camera rotation

Post by Psych »

Hi, I'm working with terrains at the moment and for the sake of testing I have put up the cameras location in the top left hand side of the screen, now getting the camera z,y,z is simple enough, but I cannot seem to find a method to get which direction the camera is facing.

Is there such a method, or do I need to keep track of this in a variable?
----------------------------------------------------------------------------
Commenting your own code is admitting you don't understand it.
----------------------------------------------------------------------------
Blobby
User
User
Posts: 17
Joined: Tue Mar 03, 2009 2:30 pm

Post by Blobby »

I know it sounds odd, but there's no way of finding the direction of anything, camera or entity.

So yep, you'll have to try and track the direction yourself.
Post Reply