39 virtual bool ShouldCollide([[maybe_unused]]
const Shape *inShape1, [[maybe_unused]]
const SubShapeID &inSubShapeIDOfShape1, [[maybe_unused]]
const Shape *inShape2, [[maybe_unused]]
const SubShapeID &inSubShapeIDOfShape2)
const
65 return mFilter.
ShouldCollide(inShape2, inSubShapeIDOfShape2, inShape1, inSubShapeIDOfShape1);
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition: BodyID.h:13
Class that makes another class non-copyable. Usage: Inherit from NonCopyable.
Definition: NonCopyable.h:11
Helper class to reverse the order of the shapes in the ShouldCollide function.
Definition: ShapeFilter.h:50
virtual bool ShouldCollide(const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
Definition: ShapeFilter.h:58
virtual bool ShouldCollide(const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
Definition: ShapeFilter.h:63
ReversedShapeFilter(const ShapeFilter &inFilter)
Constructor.
Definition: ShapeFilter.h:53
Filter class.
Definition: ShapeFilter.h:17
virtual bool ShouldCollide(const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const
Definition: ShapeFilter.h:26
virtual bool ShouldCollide(const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const
Definition: ShapeFilter.h:39
virtual ~ShapeFilter()=default
Destructor.
BodyID mBodyID2
Set by the collision detection functions to the body ID of the body that we're colliding against befo...
Definition: ShapeFilter.h:45
Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...
Definition: Shape.h:178
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition: SubShapeID.h:23