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

Simple implementation that collects the closest / deepest hit. More...

#include <CollisionCollectorImpl.h>

Inheritance diagram for ClosestHitCollisionCollector< CollectorType >:

Public Types

using ResultType = typename CollectorType::ResultType
 Redeclare ResultType.
 

Public Member Functions

virtual void Reset () override
 
virtual void AddHit (const ResultType &inResult) override
 
bool HadHit () const
 Check if this collector has had a hit.
 

Public Attributes

ResultType mHit
 

Detailed Description

template<class CollectorType>
class ClosestHitCollisionCollector< CollectorType >

Simple implementation that collects the closest / deepest hit.

Member Typedef Documentation

◆ ResultType

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

Redeclare ResultType.

Member Function Documentation

◆ AddHit()

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

◆ HadHit()

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

Check if this collector has had a hit.

◆ Reset()

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

Member Data Documentation

◆ mHit

template<class CollectorType >
ResultType ClosestHitCollisionCollector< CollectorType >::mHit

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