UCharacterMovementComponent::MaxDepenetrationWithPawn
#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; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?