shooting

Demonstrates how to shoot a ray whose direction is defined relative to a mesh. Here pressing the spacebar causes a ray to shoot from the front of the WASD drivable vehicle. A red cube is centered on the collision point with the surrounding walls.

1-2-three
example 26: shooting