95 void setMode(
Mode mode );
100 Mode getMode()
const;
143 return m_mode == MATCH_ALL ||
144 ( m_mode == MATCH_OR && ( isMatch( geometry1 ) || isMatch( geometry2 ) ) ) ||
145 ( m_mode == MATCH_AND && ( isMatch( geometry1 ) && isMatch( geometry2 ) ) );
150 const auto rbUuid = geometry->
getRigidBody() !=
nullptr ?
153 return contains( findCorrespondingUuid( geometry ) ) ||
AGXCORE_EXPORT UInt32 hash(const T &key)
Any object results in a match.
Abstract base class that implements a filter that selects which events should trigger a Listener...
#define AGXPHYSICS_EXPORT
At least one of the two objects must match our UUIDs.
virtual bool match(const agxCollide::GeometryContact &gc) const
Called when narrow phase tests have determined overlap (when we have detailed intersection between th...
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
agx::Uuid getUuid() const
Contact event filter matching UUID of instances, such as agxCollide::Geometry, agx::RigidBody, agxWire::Wire, agxCable::Cable, agxVehicle::Track and/or agxTerrain::Terrain.
virtual bool match(const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2) const override
Called by the other two match functions if they are not overridden.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::RigidBody * getRigidBody()