UMovementComponent::GetPenetrationAdjustment

Calculate a movement adjustment to try to move out of a penetration from a failed move.

Windows
MacOS
Linux

Override Hierarchy

UMovementComponent::GetPenetrationAdjustment()

UCharacterMovementComponent::GetPenetrationAdjustment()

Syntax

virtual FVector GetPenetrationAdjustment
(
    const FHitResult & Hit
) const

Remarks

Calculate a movement adjustment to try to move out of a penetration from a failed move.

Returns

The adjustment to use after a failed move, or a zero vector if no attempt should be made.

Parameters

Parameter

Description

Hit

the result of the failed move

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/MovementComponent.h

Source

Runtime/Engine/Private/Components/MovementComponent.cpp

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