![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CharacterMovementComponentAsync.h>
Public Member Functions | |
| FFindFloorResult () | |
| bool | IsWalkableFloor () const |
| void | Clear () |
| float | GetDistanceToFloor () const |
| ENGINE_API void | SetFromSweep (const FHitResult &InHit, const float InSweepFloorDist, const bool bIsWalkableFloor) |
| ENGINE_API void | SetFromLineTrace (const FHitResult &InHit, const float InSweepFloorDist, const float InLineDist, const bool bIsWalkableFloor) |
Public Attributes | |
| uint32 | bBlockingHit: 1 |
| uint32 | bWalkableFloor: 1 |
| uint32 | bLineTrace: 1 |
| float | FloorDist |
| float | LineDist |
| FHitResult | HitResult |
Data about the floor for walking movement, used by CharacterMovementComponent.
|
inline |
|
inline |
|
inline |
Gets the distance to floor, either LineDist or FloorDist.
|
inline |
Returns true if the floor result hit a walkable surface.
| void FFindFloorResult::SetFromLineTrace | ( | const FHitResult & | InHit, |
| const float | InSweepFloorDist, | ||
| const float | InLineDist, | ||
| const bool | bIsWalkableFloor | ||
| ) |
| void FFindFloorResult::SetFromSweep | ( | const FHitResult & | InHit, |
| const float | InSweepFloorDist, | ||
| const bool | bIsWalkableFloor | ||
| ) |
| uint32 FFindFloorResult::bBlockingHit |
True if there was a blocking hit in the floor test that was NOT in initial penetration. The HitResult can give more info about other circumstances.
| uint32 FFindFloorResult::bLineTrace |
True if the hit found a valid walkable floor using a line trace (rather than a sweep test, which happens when the sweep test fails to yield a walkable surface).
| uint32 FFindFloorResult::bWalkableFloor |
True if the hit found a valid walkable floor.
| float FFindFloorResult::FloorDist |
The distance to the floor, computed from the swept capsule trace.
| FHitResult FFindFloorResult::HitResult |
Hit result of the test that found a floor. Includes more specific data about the point of impact and surface normal at that point.
| float FFindFloorResult::LineDist |
The distance to the floor, computed from the trace. Only valid if bLineTrace is true.