Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > UMovementComponent
- 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 |
virtual void TwoWallAdjust
&40;
FVector & Delta,
const FHitResult & Hit,
const FVector & OldHitNormal
&41; const
Remarks
Compute a movement direction when contacting two surfaces. Result in Delta that is the direction to move when contacting two surfaces.
Parameters
Name | 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 |