DudeAwesome Posted January 19, 2014 Share Posted January 19, 2014 I have a camera with birds eye perspective and will now use my mouse to click on primitive objects to select them. I´m stuck a little bit how to get the objects behind my mousecursor. The Window Class only gives me functions like GetMousePosition. I have an idea to calculate a ray startpoint in relation to the xy position from my mousecursor in the window and send the ray with 90° into my world to see if there is a collision with an entity but that seems to be not that nice. someone give me a hint? Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Rick Posted January 19, 2014 Share Posted January 19, 2014 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/camerapick-r199 Use the camera for picking. 1 Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Author Share Posted January 20, 2014 ahh i just was focused on the window class sure camera class *facepalm* thx rick! Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.