UMovementComponent::TwoWallAdjust

Compute a movement direction when contacting two surfaces.

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback