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 ?
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
agx::RigidBody * getRigidBody()
Abstract base class that implements a filter that selects which events should trigger a Listener.
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,...
UuidHashCollisionFilter()
Default constructor, default mode is MATCH_ALL.
agx::Bool contains(agx::UInt32 hash) const
void setMode(Mode mode)
Set mode how the filtering is performed.
static agx::UInt32 findUuid(const agx::Referenced *instance)
Finds UUID hash of the given instance.
void remove(agx::UInt32 hash)
Remove hash from the matching set.
static agx::UInt32 findCorrespondingUuid(const agxCollide::Geometry *geometry)
Searches for corresponding object's (e.g., Wire, Cable, Track etc.) UUID given geometry.
void add(agx::UInt32 hash)
Add UUID hash to the matching set.
@ MATCH_AND
Both objects must match our UUID set.
@ MATCH_OR
At least one of the two objects must match our UUIDs.
@ MATCH_ALL
Any object results in a match.
virtual bool match(const agxCollide::GeometryContact &gc) const
Called when narrow phase tests have determined overlap (when we have detailed intersection between th...
virtual ~UuidHashCollisionFilter()
agx::Uuid getUuid() const
Base class providing referencing counted objects.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
AGXCORE_EXPORT UInt32 hash(const T &key)