UCharacterMovementComponent::StepUp

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

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,
    struct UCharacterMovementComponent::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.

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