23 mFinalFilter = inFilter !=
nullptr? this : &mDefault;
29 return mFilter->
ShouldCollide(*mBody1, inShape1, inSubShapeIDOfShape1, *mBody2, inShape2, inSubShapeIDOfShape2);
54 const Body * mBody2 =
nullptr;
#define JPH_NAMESPACE_END
Definition Core.h:419
#define JPH_NAMESPACE_BEGIN
Definition Core.h:413
const Shape * GetShape() const
Get the shape of this body.
Definition Body.h:265
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
const ShapeFilter & GetFilter() const
Returns the actual filter to use for collision detection.
Definition SimShapeFilterWrapper.h:45
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:27
virtual bool ShouldCollide(const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
Forward to the simulation shape filter.
Definition SimShapeFilterWrapper.h:33
void SetBody2(const Body *inBody2)
Set the body we're colliding against.
Definition SimShapeFilterWrapper.h:39
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition SubShapeID.h:23