Jolt Physics
A multi core friendly Game Physics Engine
|
A simple body filter implementation that ignores multiple, specified bodies. More...
#include <BodyFilter.h>
Public Member Functions | |
void | Clear () |
Remove all bodies from the filter. More... | |
void | Reserve (uint inSize) |
Reserve space for inSize body ID's. More... | |
void | IgnoreBody (const BodyID &inBodyID) |
Add a body to be ignored. More... | |
virtual bool | ShouldCollide (const BodyID &inBodyID) const override |
Filter function. Returns true if we should collide with inBodyID. More... | |
Public Member Functions inherited from BodyFilter | |
virtual | ~BodyFilter ()=default |
Destructor. More... | |
virtual bool | ShouldCollide (const BodyID &inBodyID) const |
Filter function. Returns true if we should collide with inBodyID. More... | |
virtual bool | ShouldCollideLocked (const Body &inBody) const |
Filter function. Returns true if we should collide with inBody (this is called after the body is locked and makes it possible to filter based on body members) More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
A simple body filter implementation that ignores multiple, specified bodies.
|
inline |
Remove all bodies from the filter.
|
inline |
Add a body to be ignored.
|
inline |
Reserve space for inSize body ID's.
|
inlineoverridevirtual |
Filter function. Returns true if we should collide with inBodyID.
Reimplemented from BodyFilter.