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. | |
void | Reserve (uint inSize) |
Reserve space for inSize body ID's. | |
void | IgnoreBody (const BodyID &inBodyID) |
Add a body to be ignored. | |
virtual bool | ShouldCollide (const BodyID &inBodyID) const override |
Filter function. Returns true if we should collide with inBodyID. | |
Public Member Functions inherited from BodyFilter | |
virtual | ~BodyFilter ()=default |
Destructor. | |
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) | |
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.