Sign in to follow this  

Third Person Camera, Direct3D C++

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this