Navigation
API > API/Runtime > API/Runtime/Chaos
Results from a SimSweepParticle. NOTE: Only HitParticle is guaranteed to be initialized. If HitParticle is null, all other properties are undefined.
| Name | FSimSweepParticleHit |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/SimSweep.h |
| Include Path | #include "Chaos/Collision/SimSweep.h" |
Syntax
class FSimSweepParticleHit
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimSweepParticleHit() |
Chaos/Collision/SimSweep.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HitDistance | FReal | The distance along the sweep at the hit, or the seperation if negative (i.e., -Penetration) (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitFaceIndex | int32 | The face index of the shape we hit, or INDEX_NONE (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitFaceNormal | FVec3 | The normal of the face we hit, if HitFaceIndex is set (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitGeometry | const FImplicitObject * | The geometry that we hit (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitNormal | FVec3 | The contact normal for HitDistance >= 0, or MTD direction for HitDistance < 0 (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitParticle | const FGeometryParticleHandle * | The particle that we hit, or null. | Chaos/Collision/SimSweep.h | |
| HitPosition | FVec3 | The contact position (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitShape | const FPerShapeData * | The shape that we hit (or uninitialized) | Chaos/Collision/SimSweep.h | |
| HitTOI | FReal | Time of impact [0,1] (or uninitialized) | Chaos/Collision/SimSweep.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init() |
Chaos/Collision/SimSweep.h | ||
bool IsHit() |
Chaos/Collision/SimSweep.h |