> i'm looking for a way to allow collision only on specified nodes. Is there a 
> way to set a particular mask to some nodes, and "say" to osg to check 
> collision only for these nodes (and ignore all the other nodes in the scene)?

On the nodes in your scenegraph, use osg::Node::setNodeMask() to
define their masks.
When doing collisions, use osgUtil::IntersectionVisitor::setTraversalMask()

If the bitwise AND of both masks is true, a collision will be
attempted. Be careful to not set a more restrictive mask higher in the
scenegraph than the mask on some lower node.
--
Terry Welsh
www.reallyslick.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to