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

A simple body filter implementation that ignores a single, specified body. More...

#include <BodyFilter.h>

Inheritance diagram for IgnoreSingleBodyFilter:
BodyFilter NonCopyable

Public Member Functions

 IgnoreSingleBodyFilter (const BodyID &inBodyID)
 Constructor, pass the body you want to ignore.
 
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
 

Detailed Description

A simple body filter implementation that ignores a single, specified body.

Constructor & Destructor Documentation

◆ IgnoreSingleBodyFilter()

IgnoreSingleBodyFilter::IgnoreSingleBodyFilter ( const BodyID inBodyID)
inlineexplicit

Constructor, pass the body you want to ignore.

Member Function Documentation

◆ ShouldCollide()

virtual bool IgnoreSingleBodyFilter::ShouldCollide ( const BodyID inBodyID) const
inlineoverridevirtual

Filter function. Returns true if we should collide with inBodyID.

Reimplemented from BodyFilter.


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