Unreal Engine 5 · Blueprint → C++
Set Simulate Physics in Unreal Engine 5 C++UE Docs
The Set Simulate Physics node is SetSimulatePhysics(bool) in C++, a UPrimitiveComponent function. Call MyMesh->SetSimulatePhysics(true); to turn the component into a dynamic rigid body.
Blueprint node & C++ equivalent
MyMesh->SetSimulatePhysics(true);What does the Set Simulate Physics node do?
Set Simulate Physics toggles whether a primitive component is driven by the physics engine. When enabled, the component becomes a dynamic rigid body that responds to gravity, collisions, impulses and forces instead of staying locked to its transform.
In C++ this is the SetSimulatePhysics function declared on UPrimitiveComponent, so it is available on any UStaticMeshComponent or USkeletalMeshComponent that has a valid physics body.
The C++ equivalent
The exact equivalent is a single call: MyMesh->SetSimulatePhysics(true);. Passing true enables simulation and false disables it, returning the component to kinematic behavior.
The component must have collision enabled and a physics body (for example, a Simple or Complex collision setup on the static mesh) for simulation to take effect. If Mobility is set to Static, the component cannot simulate; set it to Movable first.
When to use it in C++
Enable simulation at runtime when you want an object to start falling, tumbling, or reacting to hits, such as knocking over a prop or releasing a held object. You typically call it after BeginPlay or in response to a gameplay event rather than in the constructor, because the physics state of a Movable component can change during play.
Frequently asked questions
What is the C++ equivalent of the Set Simulate Physics node in UE5?+
It is UPrimitiveComponent::SetSimulatePhysics(bool). Call MyMesh->SetSimulatePhysics(true); to enable rigid-body simulation, or pass false to disable it.
Why is SetSimulatePhysics not working in Unreal Engine 5?+
Usually the component has no physics body or its Mobility is Static. Set Mobility to Movable and make sure collision and a Simple collision shape are enabled on the mesh asset.