UCharacterMovementComponent::MoveAlongFloor

Move along the floor, using CurrentFloor and [ComputeGroundMovementDelta()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\ComputeGroundMov-) to get a movement direction.

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 MoveAlongFloor
(
    const FVector & InVelocity,
    float DeltaSeconds,
    FStepDownResult * OutStepDownResult
)

Remarks

Move along the floor, using CurrentFloor and ComputeGroundMovementDelta() to get a movement direction. If a second walkable surface is hit, it will also be moved along using the same approach.

Parameters

Parameter

Description

InVelocity

Velocity of movement

DeltaSeconds

Time over which movement occurs

OutStepDownResult

[Out] If non-null, and a floor check is performed, this will be updated to reflect that result.

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