Casting rays is something that could be used in collision detection, or mouseclicks on elements.
Docs