UCharacterMovementComponent::StepUp

Move up steps or slope. Does nothing and returns false if CanStepUp(Hit) returns false.

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 bool StepUp
(
    const FVector & GravDir,
    const FVector & Delta,
    const FHitResult & Hit,
    FStepDownResult * OutStepDownResult
)

Remarks

Move up steps or slope. Does nothing and returns false if CanStepUp(Hit) returns false.

Returns

true if the step up was successful.

Parameters

Parameter

Description

GravDir

Gravity vector direction (assumed normalized or zero)

Delta

Requested move

Hit

[In] The hit before the step up.

OutStepDownResult

[Out] If non-null, a floor check will be performed if possible as part of the final step down, and it will be updated to reflect this result.