UMovementComponent::ComputeSlideVector

Compute a vector to slide along a surface, given an attempted move, time, and normal.

Windows
MacOS
Linux

Override Hierarchy

UMovementComponent::ComputeSlideVector()

UCharacterMovementComponent::ComputeSlideVector()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h

Include

#include "GameFramework/MovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp

Syntax

virtual FVector ComputeSlideVector
(
    const FVector & Delta,
    const float Time,
    const FVector & Normal,
    const FHitResult & Hit
) const

Remarks

Compute a vector to slide along a surface, given an attempted move, time, and normal.

Parameters

Parameter

Description

Delta

Attempted move.

Time

Amount of move to apply (between 0 and 1).

Normal

Normal opposed to movement. Not necessarily equal to Hit.Normal.

Hit

HitResult of the move that resulted in the slide.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback