Derive from this class to implement a listener for simulation GuiEvents.
agxSDK::PickResult intersect(float x, float y, const osg::Camera *camera, bool onlyDynamics=false)
Shoot a ray from the mouse position into the simulation and return the closest geometry.
virtual ~GuiEventListener()
void getNearFarPoints(const osg::Camera *camera, agx::Vec3 &near, agx::Vec3 &far, float x, float y) const
size_t findIntersectGeometryIndex(const agxCollide::LocalGeometryContactVector &geometryContacts)
GuiEventListener(ActivationMask mask=DEFAULT)
Default constructor, sets the default activation mask to all (POST_STEP and PRE_STEP) events.
Derive from this class to implement a listener for simulation GuiEvents.
ActivationMask
Defines the event states for which a listener will be activated, a mask can be bitwise OR:ed from the...
Smart pointer for handling referenced counted objects.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
agx::ref_ptr< GuiEventListener > GuiEventListenerRef