3d mouse coordinates?

Hi, I’m trying to make an RTS game with Panda3D and would like to know how I could get a 3d position from my mouse’s 2d coordinates.
Thanks in advance!

Converting 2d coordinates to 3d is not a simple step (unlike the opposite way).

If you need to do the ‘picking’ (as it’s called) on a plane, take a look at this script:
discourse.panda3d.org/viewtopic.php?t=5409
If, however, you want to pick more complex shapes, you will need to use the collision system to cast a ray perpendicular to the camera. Search the forums or manual for ‘picker’.

Don’t forget to read this page in the manual: Clicking on 3D Objects :wink: