Navigation
API > API/Runtime > API/Runtime/Chaos
A hit collector for SimSweepParticle that just keeps the first hit, except for initial overlaps where the sweep is already moving us away from the contact. When there are multiple hits at the same TOI/initial overlap we take the hit with the most opposing normal.
| Name | FSimSweepCollectorFirstHit |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/SimSweep.h |
| Include Path | #include "Chaos/Collision/SimSweep.h" |
Syntax
class FSimSweepCollectorFirstHit
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimSweepCollectorFirstHit
(
const FReal InHitDistanceEqualTolerance, |
Chaos/Collision/SimSweep.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FirstHit | FSimSweepParticleHit & | Chaos/Collision/SimSweep.h | ||
| HitDistanceEqualTolerance | FReal | Chaos/Collision/SimSweep.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FSimSweepParticleHit & GetFirstHit() |
Chaos/Collision/SimSweep.h | ||
void Init() |
Chaos/Collision/SimSweep.h | ||
bool IsHit() |
Chaos/Collision/SimSweep.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator()
(
const FVec3& Dir, |
Keep the first hit and continue looking for more hits | Chaos/Collision/SimSweep.h |