|
-
Oct 29th, 2011, 07:19 PM
#1
Thread Starter
Frenzied Member
Math code for camera
I have a 3d space ship and would like some help with the math to calculate the angles for the camera.
The camera code has two vectors... the position of the camera and where the camera looks at.
What I am after is a default position for the camera at a nice height behind the ship, looking at the ship. When I turn my ship, I would like the camera to stay in its last position but when I thrust forward, I want the camera to rotate to the same default angle as the default position (but the position will be different as the ship has turned).
Does that make sense?
Canning
Last edited by Simon Canning; Oct 29th, 2011 at 08:08 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|