Choose your operating system:
Windows
macOS
Linux
| UMovementComponent::ComputeSlideVector()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include |
#include "GameFramework/MovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp |
virtual FVector ComputeSlideVector
(
const FVector & Delta,
const float Time,
const FVector & Normal,
const FHitResult & Hit
) const
Compute a vector to slide along a surface, given an attempted move, time, and normal.
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. |