Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Calculate slide vector along a surface. Has special treatment when falling, to avoid boosting up slopes (calling HandleSlopeBoosting() in this case).
Virtual Inheritance
- UMovementComponent::ComputeSlideVector → UCharacterMovementComponent::ComputeSlideVector
| Name | ComputeSlideVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual FVector ComputeSlideVector
(
const FVector & Delta,
const float Time,
const FVector & Normal,
const FHitResult & Hit
) const
New deflected vector of movement.
Parameters
| Name | Remarks |
|---|---|
| Delta | Attempted move. |
| Time | Amount of move to apply (between 0 and 1). |
| Normal | Normal opposed to movement. Not necessarily equal to Hit.Normal (but usually is). |
| Hit | HitResult of the move that resulted in the slide. |