pickObject method using #ray #query . The red/yellow texture indicate witch objects has been picked. It is basically a collision between the mouse and the objects.
The calculation being done on the bounding box of the object and not the mesh, collision are sometimes odd.