UCharacterMovementComponent::PushForceFactor
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Force continuously applied to a physics object while this character remains blocked against it.
Caveats & Gotchas
- • Has no effect unless bEnablePhysicsInteraction is enabled.
- • If bScalePushForceToVelocity is enabled, the applied force is capped so it only accelerates the object up to the character's own velocity, never beyond it.
- • If bPushForceScaledToMass is enabled, the force also scales with the target object's mass, so heavier props resist pushing more.
Signature
float PushForceFactor; Example
Enable sustained pushing of physics props C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
MoveComp->bEnablePhysicsInteraction = true;
MoveComp->PushForceFactor = 750000.0f;
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?