RealDocs

UCharacterMovementComponent::MaxDepenetrationWithPawn

property Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteAdvancedDisplay

Description

Maximum distance the locally controlled or autonomous character is allowed to depenetrate per step when resolving overlaps with other Pawns.

Caveats & Gotchas

  • Only applies to the non-proxy character; simulated proxies use MaxDepenetrationWithPawnAsProxy instead, which defaults much smaller (2.f vs 100.f).
  • Pawn-vs-pawn depenetration is separate from world geometry depenetration — see MaxDepenetrationWithGeometry for that case.

Signature

float MaxDepenetrationWithPawn

Example

Reduce pawn-vs-pawn depenetration distance C++
GetCharacterMovement()->MaxDepenetrationWithPawn = 50.f;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.