Controls:
- Up/Down arrow: move in global Z direction
- Left/Right arrow: move in global X direction
- A/D: rotate left/right
Notes:
Collision rays originate at center of cube and extend to each vertex. Collisions are indicated by "hit" text above the Three.js region. Note that collisions do not register if rays intersect the back side of a mesh (in particular, if the origin of the rays are contained in the target mesh).
This three.js demo is part of a collection at
http://stemkoski.github.io/Three.js/