![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SimSweep.h>
Public Member Functions | |
| FSimSweepCollectorFirstHit (const FReal InHitDistanceEqualTolerance, FSimSweepParticleHit &OutFirstHit) | |
| bool | operator() (const FVec3 &Dir, const FReal Length, const FSimSweepParticleHit &InHit) |
| void | Init () |
| bool | IsHit () const |
| const FSimSweepParticleHit & | GetFirstHit () const |
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.
|
inline |
| InHitDistanceEqualTolerance | Sweep hits within this distance are assumed to be at equal distance, in which case we take the hit with the most-opposing normal |
| OutHit | a reference to a hit structure that will contain the results. |
|
inline |
|
inline |
|
inline |
|
inline |
Keep the first hit and continue looking for more hits