Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
AllHitCollisionCollector< CollectorType > Class Template Reference

Simple implementation that collects all hits and optionally sorts them on distance. More...

#include <CollisionCollectorImpl.h>

Inheritance diagram for AllHitCollisionCollector< CollectorType >:

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< ResultTypemHits
 

Detailed Description

template<class CollectorType>
class AllHitCollisionCollector< CollectorType >

Simple implementation that collects all hits and optionally sorts them on distance.

Member Typedef Documentation

◆ ResultType

template<class CollectorType >
using AllHitCollisionCollector< CollectorType >::ResultType = typename CollectorType::ResultType

Redeclare ResultType.

Member Function Documentation

◆ AddHit()

template<class CollectorType >
virtual void AllHitCollisionCollector< CollectorType >::AddHit ( const ResultType inResult)
inlineoverridevirtual

◆ HadHit()

template<class CollectorType >
bool AllHitCollisionCollector< CollectorType >::HadHit ( ) const
inline

Check if any hits were collected.

◆ Reset()

template<class CollectorType >
virtual void AllHitCollisionCollector< CollectorType >::Reset ( )
inlineoverridevirtual

◆ Sort()

template<class CollectorType >
void AllHitCollisionCollector< CollectorType >::Sort ( )
inline

Order hits on closest first.

Member Data Documentation

◆ mHits

template<class CollectorType >
Array<ResultType> AllHitCollisionCollector< CollectorType >::mHits

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