Hi,
i will try to be more exact on this pseudocode:
Code:
operator() (osg::Node* current, osg::NodeVisitor* nv)
{
//i want to get list of nodes which are in collision with current node so i can
print it, for example
std::vector<osg::Node> collided = nv->someCustomMethod(current);
if(!collided.empty())
{
for(osg::Node &node : collided)
{
std::cout << "collision with node: " + node->getName() << std::endl;
}
}
There is no need to get this nodes from nodevisotor. I dont care how i will get
them as long as i use pure osg not bullet. This code is just example.
Thank you!
Cheers,
Matus
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67186#67186
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org