UCharacterMovementComponent::MinTouchForce
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Lower bound on the force applied to physics objects the character touches, computed from TouchForceFactor.
Caveats & Gotchas
- • A negative value disables the minimum entirely, allowing the computed touch force to fall as low as zero at low character speed.
- • Has no effect unless bEnablePhysicsInteraction is enabled.
- • Setting this above MaxTouchForce means every touch applies the maximum force regardless of speed.
Signature
float MinTouchForce; Example
Guarantee a minimum nudge on contact C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
MoveComp->bEnablePhysicsInteraction = true;
MoveComp->MinTouchForce = 10.0f;
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?