Shoot Raycast From Cursor

How do I shoot a ray from the cursor?

I found the solution by using the picker.

You might also be interested in this project:

https://playcanvas.com/project/5141/overview/howto-entity-picking