|
-
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.
-
Nov 6th, 2011, 05:11 PM
#2
Thread Starter
Frenzied Member
Re: Math code for camera
OK, I have a question.
I have a camera at a certain vector position v1, and have a destination vector v2 that I would like to move the camera to. How can I move in a smooth manner, from my v1 to v2?
Canning
Last edited by Simon Canning; Nov 6th, 2011 at 06:04 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
|