Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
- UPrimitiveComponent::SetSimulatePhysics()
- UDestructibleComponent::SetSimulatePhysics()
- UClusterUnionComponent::SetSimulatePhysics()
- UGeometryCollectionComponent::SetSimulatePhysics()
- USkeletalMeshComponent::SetSimulatePhysics()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
virtual void SetSimulatePhysics
&40;
bool bSimulate
&41;
Remarks
Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic). Note that if this component is currently attached to something, beginning simulation will detach it.
Parameters
| Name | Description |
|---|---|
| bSimulate | New simulation state for single body |