Ray Casting

Ray casting is mainly used to query the world. Whenever you click on the screen and a 3D object is selected it happens because a ray was created out of your mouse position, and that was tested against the objects on screen.

Rays are also used to determine if a collision between moving objects has happened.

results matching ""

    No results matching ""