Parameters
- mousePos
- Mouse position (zero on top)
- maxDistance
- Limit the search to points at this distance in pixels from mouse cursor position
- closest
- The closest vertex as a 3D point
Return Value
The entity index if the closest vertex is nearer than maxDistance, -1 otherwise.