Controls: Notes:

Collision rays originate at center of cube and extend to each vertex. Collisions are indicated by "hit" text in the console. 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).


Modified from the example at by Lee Stemkoski.