![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GeometryCollectionEngineRemoval.h>
Provides an API for the run time aspect of the remove on sleep feature this is to be used with the dynamic collection
| FGeometryCollectionRemoveOnSleepDynamicFacade::FGeometryCollectionRemoveOnSleepDynamicFacade | ( | FManagedArrayCollection & | InCollection | ) |
Compute decay from elapsed timer and duration attributes
| bool FGeometryCollectionRemoveOnSleepDynamicFacade::ComputeSlowMovingState | ( | int32 | TransformIndex, |
| const FVector & | Position, | ||
| float | DeltaTime, | ||
| FVector::FReal | VelocityThreshold | ||
| ) |
Compute the slow moving state and update from the last position After calling this method, LastPosition will be updated with Position
| Position | Current world position |
| DeltaTime | elapsed time since last update |
| void FGeometryCollectionRemoveOnSleepDynamicFacade::DefineSchema | ( | ) |
Add the relevant attributes
| float FGeometryCollectionRemoveOnSleepDynamicFacade::GetSleepRemovalDuration | ( | int32 | TransformIndex | ) | const |
| bool FGeometryCollectionRemoveOnSleepDynamicFacade::IsConst | ( | ) | const |
Is this facade const access
true if the removal is active for a specific piece
| bool FGeometryCollectionRemoveOnSleepDynamicFacade::IsValid | ( | ) | const |
returns true if all the necessary attributes are present if not then the API can be used to create
| void FGeometryCollectionRemoveOnSleepDynamicFacade::SetAttributeValues | ( | const FVector2D & | MaximumSleepTime, |
| const FVector2D & | RemovalDuration | ||
| ) |
Add the necessary attributes if they are missing and initialize them if necessary
| MaximumSleepTime | range of time to initialize the sleep duration |
| RemovalDuration | range of time to initialize the removal duration |
| void FGeometryCollectionRemoveOnSleepDynamicFacade::SetMaxSleepTime | ( | int32 | TransformIndex, |
| float | MaxSleepTime | ||
| ) |
| void FGeometryCollectionRemoveOnSleepDynamicFacade::SetSleepRemovalDuration | ( | int32 | TransformIndex, |
| float | SleepRemovalDuration | ||
| ) |
| void FGeometryCollectionRemoveOnSleepDynamicFacade::UpdateSleepTimer | ( | int32 | TransformIndex, |
| float | DeltaTime | ||
| ) |
Update the sleep timer
| TransformIndex | index of the transform to update |
| DeltaTime | elapsed time since last update |