UCharacterMovementComponent::K2_FindFloor

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

Choose your operating system:

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