UMovementComponent::TwoWallAdjust

Override Hierarchy

UMovementComponent::TwoWallAdjust()

UCharacterMovementComponent::TwoWallAdjust()

Syntax

virtual void TwoWallAdjust
(
    FVector & Delta,
    const FHitResult & Hit,
    const FVector & OldHitNormal
) const

Remarks

Compute a movement direction when contacting two surfaces.

Returns

Result in Delta that is the direction to move when contacting two surfaces.

Parameters

Parameter

Description

Delta

[In] Amount of move attempted before impact. [Out] Computed adjustment based on impacts.

Hit

Impact from last attempted move

OldHitNormal

Normal of impact before last attempted move

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/MovementComponent.h

Source

Runtime/Engine/Private/Components/MovementComponent.cpp