Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
[EXPERIMENTAL] Set whether all bodies in this component allow Partial Island Sleeping for the island they are in. Note that Partial Island Sleeping is a CPU optimization disabling non-moving bodies in the solver. This feature is useful for scenes with many rigid bodies but can affect the physics behavior.
| Name | SetAllAllowPartialIslandSleep |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics")
virtual void SetAllAllowPartialIslandSleep
(
bool InAllowPartialIslandSleep
)