UCharacterMovementComponent::K2_FindFloor

Sweeps a vertical trace to find the floor for the capsule at the given location.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual void K2_FindFloor
(
    FVector CapsuleLocation,
    FFindFloorResult & FloorResult
) const

Remarks

Sweeps a vertical trace to find the floor for the capsule at the given location. Will attempt to perch if ShouldComputePerchResult() returns true for the downward sweep result. No floor will be found if collision is disabled on the capsule!

Parameters

Parameter

Description

CapsuleLocation

Location where the capsule sweep should originate

FloorResult

Result of the floor check

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss