Mouse Tips And Tricks

Mouse Utilities

The script below provided the following functionalities:

  • Project a ray from the camera through the mouse cursor and gets the location of where the ray intersects a plane specified by the user.

  • Gets the position of the mouse in the world. This must be supplied a depth value since the mouse exists on the X, Y plane of the screen