Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

3RD Person Camera

This topic is 6086 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone have any code on a 3rd Person Camera. RIght now i have top down, and first person, but to round out hte spectrum, i need 3rd person. much thanks steve Code makes the world spin round

Share this post


Link to post
Share on other sites
Advertisement
One simple way :

1. Calculate a point in behind of the object using the object''s front direction vector
2. Rotate it around the x axis of the object to gain viewing height.
3. Rotate it around the z axis of the object to have different viewing angle.
4. Calculate a view matrix from the viewing point to the object position

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!