95 void setMode( Mode mode );
100 Mode getMode()
const;
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 ?
AGXCORE_EXPORT UInt32 hash(const T &key)
Any object results in a match.
agx::Bool contains(agx::UInt32 hash) const
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.
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
Both objects must match our UUID set.
virtual bool match(const agxCollide::GeometryContact &gc) const
Called when narrow phase tests have determined overlap (when we have detailed intersection between th...
Contact event filter matching UUID of instances, such as agxCollide::Geometry, agx::RigidBody, agxWire::Wire, agxCable::Cable, agxVehicle::Track and/or agxTerrain::Terrain.
static agx::UInt32 findCorrespondingUuid(const agxCollide::Geometry *geometry)
Searches for corresponding object's (e.g., Wire, Cable, Track etc.) UUID given geometry.
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.
agx::Uuid getUuid() const
agx::RigidBody * getRigidBody()