UCharacterMovementComponent::SlideAlongSurface

Custom version of SlideAlongSurface that handles different movement modes separately; namely during walking physics we might not want to slide up slopes.

Windows
MacOS
Linux

Override Hierarchy

UMovementComponent::SlideAlongSurface()

UCharacterMovementComponent::SlideAlongSurface()

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 float SlideAlongSurface
(
    const FVector & Delta,
    float Time,
    const FVector & Normal,
    FHitResult & Hit,
    bool bHandleImpact
)

Remarks

Custom version of SlideAlongSurface that handles different movement modes separately; namely during walking physics we might not want to slide up slopes.

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