Jolt Physics
A multi core friendly Game Physics Engine
|
Simple implementation that collects all hits and optionally sorts them on distance. More...
#include <CollisionCollectorImpl.h>
Public Types | |
using | ResultType = typename CollectorType::ResultType |
Redeclare ResultType. | |
Public Member Functions | |
virtual void | Reset () override |
virtual void | AddHit (const ResultType &inResult) override |
void | Sort () |
Order hits on closest first. | |
bool | HadHit () const |
Check if any hits were collected. | |
Public Attributes | |
Array< ResultType > | mHits |
Simple implementation that collects all hits and optionally sorts them on distance.
using AllHitCollisionCollector< CollectorType >::ResultType = typename CollectorType::ResultType |
Redeclare ResultType.
|
inlineoverridevirtual |
|
inline |
Check if any hits were collected.
|
inlineoverridevirtual |
|
inline |
Order hits on closest first.
Array<ResultType> AllHitCollisionCollector< CollectorType >::mHits |