There are various way to detect on which object a user click: Picking with an OpenGL hack Picking with a physics library Picking with custom Ray-OBB function