Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Data about the floor for walking movement, used by CharacterMovementComponent.
| Name | FFloorTestResult |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/CharacterMotionSimulation.h |
| Include Path | #include "CharacterMotionSimulation.h" |
Syntax
struct FFloorTestResult
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FFloorTestResult() |
CharacterMotionSimulation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bBlockingHit | uint32 | True if there was a blocking hit in the floor test that was NOT in initial penetration. | CharacterMotionSimulation.h |
|
| bWalkableFloor | uint32 | True if the hit found a valid walkable floor. | CharacterMotionSimulation.h |
|
| FloorDist | float | The distance to the floor, computed from the swept capsule trace. | CharacterMotionSimulation.h |
|
| HitResult | FHitResult | Hit result of the test that found a floor. | CharacterMotionSimulation.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Clear() |
CharacterMotionSimulation.h | ||
float GetDistanceToFloor() |
Gets the distance to floor, either LineDist or FloorDist. | CharacterMotionSimulation.h | |
bool IsWalkableFloor() |
Returns true if the floor result hit a walkable surface. | CharacterMotionSimulation.h | |
void SetFromSweep
(
const FHitResult& InHit, |
CharacterMotionSimulation.h |