UCharacterMovementComponent::MaxTouchForce
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Upper bound on the force applied to physics objects the character touches, computed from TouchForceFactor.
Caveats & Gotchas
- • A negative value disables the maximum entirely, letting touch force scale unbounded with speed and TouchForceFactor.
- • Has no effect unless bEnablePhysicsInteraction is enabled.
- • A low cap here can make fast-moving characters feel like they barely nudge objects, even with a high TouchForceFactor.
Signature
float MaxTouchForce; Example
Cap how hard a sprinting character can nudge props C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
MoveComp->bEnablePhysicsInteraction = true;
MoveComp->MaxTouchForce = 250.0f;
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?