27 return mFilter->
ShouldCollide(*mBody1, inShape1, inSubShapeIDOfShape1, *mBody2, inShape2, inSubShapeIDOfShape2);
58 if (inFilter !=
nullptr)
73 return mSimShapeFilterWrapper;
#define JPH_NAMESPACE_END
Definition Core.h:414
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
const Shape * GetShape() const
Get the shape of this body.
Definition Body.h:261
Filter class.
Definition ShapeFilter.h:17
Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...
Definition Shape.h:186
Filter class used during the simulation (PhysicsSystem::Update) to filter out collisions at shape lev...
Definition SimShapeFilter.h:17
virtual bool ShouldCollide(const Body &inBody1, const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Body &inBody2, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const
Definition SimShapeFilter.h:33
Definition SimShapeFilterWrapper.h:15
SimShapeFilterWrapper(const SimShapeFilter *inFilter, const Body *inBody1)
Constructor.
Definition SimShapeFilterWrapper.h:18
virtual bool ShouldCollide(const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
Forward to the simulation shape filter.
Definition SimShapeFilterWrapper.h:25
virtual bool ShouldCollide(const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
Forward to the simulation shape filter.
Definition SimShapeFilterWrapper.h:31
void SetBody2(const Body *inBody2)
Set the body we're colliding against.
Definition SimShapeFilterWrapper.h:37
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition SubShapeID.h:23
Definition SimShapeFilterWrapper.h:51
~SimShapeFilterWrapperUnion()
Destructor.
Definition SimShapeFilterWrapper.h:65
SimShapeFilterWrapperUnion(const SimShapeFilter *inFilter, const Body *inBody1)
Constructor.
Definition SimShapeFilterWrapper.h:54
SimShapeFilterWrapper & GetSimShapeFilterWrapper()
Accessor.
Definition SimShapeFilterWrapper.h:71