opengl is not a scenegraph api. it gives you the possibility to light, cull and draw triangles delivered by a scenegraph lib or whatever. there is no possibility to let opengl do physic calculus or object interactions for you.
you should look for a scenegraph library like SGL, Genesis … there are so many open source projects around … and work with it.