Choose your operating system:
Windows
macOS
Linux
| UMovementComponent::TwoWallAdjust()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include |
#include "GameFramework/MovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp |
virtual void TwoWallAdjust
(
FVector & Delta,
const FHitResult & Hit,
const FVector & OldHitNormal
) const
Compute a movement direction when contacting two surfaces.
Result in Delta that is the direction to move when contacting two surfaces.
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 |