[osg-users] Collided nodes in callback

Julien Valentin julienvalentin51 at gmail.com
Sat May 21 07:16:00 PDT 2016

I think you have to be more precise on what you want to achieve in your callback...
If you're seeking collision in order to apply physical collisions response, you missunderstand the purpose of osg framework  and I can only point to dedicated tools in order to do it : osgPhysics or osgBullet.
If you doesn't seek for physics, you'll have to do all by yourself. There are all primitive collision procedures in osgUtil

matus wrote:
> Hi,
> I am implementing my own update callback and i need list of colliding nodes with current node in operator() method. I have to use only simple collision metod by comparing BoundSpheres but i dont know how to get list of colliding nodes. I guess I have to somehow modify node visitor so when it traverse to current node i can simply extract from nodevisitor list of colliding nodes.
> Any ideas?
> Thank you!
> Cheers,
> Matus

Read this topic online here:

More information about the osg-users mailing list