Public Member Functions | |
PhysicsDebugUpdateCB (Physics::Geom *pGeom) | |
virtual void | operator() (osg::Node *pNode, osg::NodeVisitor *pNV) |
It also sets the color of debug 3D object accordingly to the state of physical object :
Definition at line 69 of file 3DPhy.cpp.
PhysicsDebugUpdateCB::PhysicsDebugUpdateCB | ( | Physics::Geom * | pGeom | ) | [inline] |
virtual void PhysicsDebugUpdateCB::operator() | ( | osg::Node * | pNode, | |
osg::NodeVisitor * | pNV | |||
) | [inline, virtual] |
Reimplemented from PhysicsUpdateCB.
Definition at line 72 of file 3DPhy.cpp.
References ASSERT, Physics::GeometryHandler::BOX, Physics::GeometryHandler::CAPSULE, Physics::GeometryHandler::CYLINDER, DirtyDebugGeodeCallback::dirty, Physics::Geom::getBody(), Physics::Geom::getHandler(), Physics::Geom::getMatrix(), Physics::GeometryHandler::MESH, Physics::GeometryHandler::pChangeCallback, PhysicsUpdateCB::pGeom, Physics::GeometryHandler::RAY, setColor(), Physics::GeometryHandler::SPHERE, THROW_TRACED_EXCEPTION, and Physics::GeometryHandler::type().