Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
Include |
#include "GameFramework/CharacterMovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual FVector ComputeGroundMovementDelta
(
const FVector & Delta,
const FHitResult & RampHit,
const bool bHitFromLineTrace
) const
Compute a vector of movement, given a delta and a hit result of the surface we are on.
If on a walkable surface, this returns a vector that moves parallel to the surface. The magnitude may be scaled if bMaintainHorizontalGroundVelocity is true. If a ramp vector can't be computed, this will just return Delta.
Parameter |
Description |
---|---|
Delta |
Attempted movement direction |
RampHit |
Hit result of sweep that found the ramp below the capsule |
bHitFromLineTrace |
Whether the floor trace came from a line trace |