Raycasting
Raycasting traces an invisible line through the scene to find intersecting . This is useful, for example, to check which objects are in a gun's line of fire, or are under the mouse cursor when the user clicks.
Note
To use a raycast, in the current Simulation, use .
This code sends a raycast from the mouse's screen position: