FFloorTestResult

Data about the floor for walking movement, used by CharacterMovementComponent.

Choose your operating system:

Windows

macOS

Linux

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/CharacterMotionSimulation.h

Include

#include "CharacterMotionSimulation.h"

Syntax

struct FFloorTestResult

Remarks

Data about the floor for walking movement, used by CharacterMovementComponent.

Variables

Name Description

Public variable UProperty Category BlueprintReadOnly visibleinstanceonly

uint32: 1

 

bBlockingHit

True if there was a blocking hit in the floor test that was NOT in initial penetration.

Public variable UProperty Category BlueprintReadOnly visibleinstanceonly

uint32: 1

 

bWalkableFloor

True if the hit found a valid walkable floor.

Public variable UProperty Category BlueprintReadOnly visibleinstanceonly

float

 

FloorDist

The distance to the floor, computed from the swept capsule trace.

Public variable UProperty Category BlueprintReadOnly visibleinstanceonly

FHitResult

 

HitResult

Hit result of the test that found a floor.

Constructors

Name Description

Public function

FFloorTestResult()

Functions

Name Description

Public function

void

 

Clear()

Public function Const

float

 

GetDistanceToFloor()

Gets the distance to floor, either LineDist or FloorDist.

Public function Const

bool

 

IsWalkableFloor()

Returns true if the floor result hit a walkable surface.

Public function

void

 

SetFromSweep

(
    const FHitResult& InHit,
    const float InSweepFloorDist,
    const bool bIsWalkableFloor
)