Jump to content
  • Advertisement

Archived

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

jda

3rd Person Perspective

This topic is 5837 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

With my current code I have a ship model and the camera is located behind it in a 3rd person perspective. However I am having trouble keeping the camera in the same position behind the ship. nShipNode->yaw(rotX); nShipNode->pitch(rotY); nShipNode->translate(sVec); mCamera->yaw(rotX); mCamera->pitch(rotY); mCamera->moveRelative(cVec); This implementation causes the Camera to move independently of the model. Does anyone know of a method to fix the position behind the ship as the ship moves? Just a note the Camera is looking at the origin (0,0,0).

Share this post


Link to post
Share on other sites
Advertisement

  • 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!