Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SimShapeFilterWrapper Class Reference

#include <SimShapeFilterWrapper.h>

Inheritance diagram for SimShapeFilterWrapper:
ShapeFilter NonCopyable

Public Member Functions

 SimShapeFilterWrapper (const SimShapeFilter *inFilter, const Body *inBody1)
 Constructor.
 
virtual bool ShouldCollide (const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
 Forward to the simulation shape filter.
 
virtual bool ShouldCollide (const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
 Forward to the simulation shape filter.
 
void SetBody2 (const Body *inBody2)
 Set the body we're colliding against.
 
- Public Member Functions inherited from ShapeFilter
virtual ~ShapeFilter ()=default
 Destructor.
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Additional Inherited Members

- Public Attributes inherited from ShapeFilter
BodyID mBodyID2
 

Detailed Description

Helper class to forward ShapeFilter calls to a SimShapeFilter INTERNAL CLASS DO NOT USE!

Constructor & Destructor Documentation

◆ SimShapeFilterWrapper()

SimShapeFilterWrapper::SimShapeFilterWrapper ( const SimShapeFilter inFilter,
const Body inBody1 
)
inline

Constructor.

Member Function Documentation

◆ SetBody2()

void SimShapeFilterWrapper::SetBody2 ( const Body inBody2)
inline

Set the body we're colliding against.

◆ ShouldCollide() [1/2]

virtual bool SimShapeFilterWrapper::ShouldCollide ( const Shape inShape1,
const SubShapeID inSubShapeIDOfShape1,
const Shape inShape2,
const SubShapeID inSubShapeIDOfShape2 
) const
inlineoverridevirtual

Forward to the simulation shape filter.

Reimplemented from ShapeFilter.

◆ ShouldCollide() [2/2]

virtual bool SimShapeFilterWrapper::ShouldCollide ( const Shape inShape2,
const SubShapeID inSubShapeIDOfShape2 
) const
inlineoverridevirtual

Forward to the simulation shape filter.

Reimplemented from ShapeFilter.


The documentation for this class was generated from the following file: