UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AsyncPhysicsStateProcessorInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Set.h"
6#include "Misc/Timeout.h"
7
8// Interface used by FPhysScene_AsyncPhysicsStateJobQueue
9
10class UObject;
11class UBodySetup;
12
14{
15public:
17 virtual bool AllowsAsyncPhysicsStateCreation() const { return false; }
18
20 virtual bool AllowsAsyncPhysicsStateDestruction() const { return false; }
21
23 virtual bool IsAsyncPhysicsStateCreated() const { return false; }
24
26 virtual UObject* GetAsyncPhysicsStateObject() const { return nullptr; }
27
30
33
35 virtual bool OnAsyncCreatePhysicsState(const UE::FTimeout& TimeOut) { return true; }
36
39
42
44 virtual bool OnAsyncDestroyPhysicsState(const UE::FTimeout& TimeOut) { return true; }
45
48};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AsyncPhysicsStateProcessorInterface.h:14
virtual UObject * GetAsyncPhysicsStateObject() const
Definition AsyncPhysicsStateProcessorInterface.h:26
virtual bool AllowsAsyncPhysicsStateDestruction() const
Definition AsyncPhysicsStateProcessorInterface.h:20
virtual void OnAsyncCreatePhysicsStateEnd_GameThread()
Definition AsyncPhysicsStateProcessorInterface.h:38
virtual bool OnAsyncCreatePhysicsState(const UE::FTimeout &TimeOut)
Definition AsyncPhysicsStateProcessorInterface.h:35
virtual bool AllowsAsyncPhysicsStateCreation() const
Definition AsyncPhysicsStateProcessorInterface.h:17
virtual void OnAsyncDestroyPhysicsStateBegin_GameThread()
Definition AsyncPhysicsStateProcessorInterface.h:41
virtual void OnAsyncDestroyPhysicsStateEnd_GameThread()
Definition AsyncPhysicsStateProcessorInterface.h:47
virtual bool OnAsyncDestroyPhysicsState(const UE::FTimeout &TimeOut)
Definition AsyncPhysicsStateProcessorInterface.h:44
virtual bool IsAsyncPhysicsStateCreated() const
Definition AsyncPhysicsStateProcessorInterface.h:23
virtual void CollectBodySetupsWithPhysicsMeshesToCreate(TSet< UBodySetup * > &OutBodySetups) const
Definition AsyncPhysicsStateProcessorInterface.h:29
virtual void OnAsyncCreatePhysicsStateBegin_GameThread()
Definition AsyncPhysicsStateProcessorInterface.h:32
Definition BodySetup.h:128
Definition Timeout.h:21
Definition Object.h:95