Jump to content
  • Advertisement


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


mouse position to world units

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

hi, can anyone tell me how can i cast a ray from the mouse position with a given horizontal and vertical angle? i mean i have use a camera given by a point(the source) a horizontal and vertical angle and the distance to the focus. i want to create a line from the camera position plane to the terrain plane.i know how to cast the rayfrom a given point but i don''t know the point where the mouse cursor is in the camera plane. So how can i find this point? and after i find the coordinate of the point is it right if i cast the ray parallel 2 the line that conects the point of view with the focus? thk u

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!