Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/UMovementComponent
- UMovementComponent::GetPenetrationAdjustment()
- UCharacterMovementComponent::GetPenetrationAdjustment()
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 FVector GetPenetrationAdjustment
&40;
const FHitResult & Hit
&41; const
Remarks
Calculate a movement adjustment to try to move out of a penetration from a failed move. The adjustment to use after a failed move, or a zero vector if no attempt should be made.
Parameters
| Name | Description |
|---|---|
| Hit | the result of the failed move |