UMovementComponent::TwoWallAdjust

Compute a movement direction when contacting two surfaces.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UMovementComponent::TwoWallAdjust()

UCharacterMovementComponent::TwoWallAdjust()

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 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