UCharacterMovementComponent::SlideAlongSurface

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

Choose your operating system:

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.