Jump to content
  • Advertisement


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


3rd Person Perspective

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

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!