Sign in to follow this  
Anddos

Get camera Direction help

Recommended Posts

Anddos    588
I want to cast a ray in the camera direction using this device->GetTransform(D3DTS_VIEW,&View); now i understand the raypos would be View.41,View.42,View.43 but what would be the direction ?

Share this post


Link to post
Share on other sites
jyk    2094
Quote:
but what would be the direction ?
Probably (31, 32, 33).

However, you'll most likely need to invert the matrix before extracting the ray parameters.

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