Advertisement Jump to content
Sign in to follow this  
sinyester

Third Person Camera, Direct3D C++

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

Hey, i'm sure you guys have anwsered on hundres of these and i'll hope you'll help another fool! I'm trying to make a third-person-camera which follows an object around and can be rotated around it on x.z,y! But after reading thousands of tutorials and guides I still don't understand how! Help ? ;p cam_position=D3DXVECTOR3(camerax + xship,cameray + yship, zcamera + zship); cam_target=D3DXVECTOR3(0.0f + xship , 0.0f + yship, 0.0f + zship); D3DXMatrixLookAtLH(&matView, &D3DXVECTOR3 (cam_position), &D3DXVECTOR3 (cam_target), &D3DXVECTOR3 (0.0f, 1.0f, 0.0f)); d3ddev->SetTransform(D3DTS_VIEW, &matView); Thanks in advance, Sinyester;

Share this post


Link to post
Share on other sites
Advertisement
http://www.gamedev.net/community/forums/topic.asp?topic_id=547187

Hope this helps, if any questions, just ask

Share this post


Link to post
Share on other sites
Sign in to follow this  

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