RigidBodyRenderCache is used to cache mappings between RigidBodies and GeometryNodes for fast lookup ...
bool getOnlyAddEmittedBodies() const
RigidBodyRenderCache(bool onlyAddEmittedBodies=true)
Default constructor.
virtual ~RigidBodyRenderCache()
void addToCache(osg::Group *rootNode)
Add all GeometryNodes with connected RigidBodies in the osg::Group.
void traverseAndInsert(osg::Group *group)
agxOSG::GeometryNode * getNode(agx::RigidBody *body)
Get the current mapping in the cache between a RigidBody to a GeometryNode.
void clear()
Clear the internal cache.
void setOnlyAddEmittedBodies(bool enable)
bool shouldAddBody(agx::RigidBody *body) const
The rigid body class, combining a geometric model and a frame of reference.