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

#include <SimShapeFilterWrapper.h>

Inheritance diagram for SimShapeFilterWrapper:
ShapeFilter

Public Member Functions

 SimShapeFilterWrapper (const SimShapeFilter *inFilter, const Body *inBody1)
 Constructor. More...
 
virtual bool ShouldCollide (const Shape *inShape1, const SubShapeID &inSubShapeIDOfShape1, const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
 Forward to the simulation shape filter. More...
 
virtual bool ShouldCollide (const Shape *inShape2, const SubShapeID &inSubShapeIDOfShape2) const override
 Forward to the simulation shape filter. More...
 
void SetBody2 (const Body *inBody2)
 Set the body we're colliding against. More...
 
const ShapeFilterGetFilter () const
 Returns the actual filter to use for collision detection. More...
 

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

◆ GetFilter()

const ShapeFilter & SimShapeFilterWrapper::GetFilter ( ) const
inline

Returns the actual filter to use for collision detection.

◆ 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: