Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FChaosSolversModule
Description
Create a new solver state storage object to contain a solver and proxy storage object. Intended to be used by the physics scene to create a common storage object that can be passed to a dedicated thread when it is enabled without having to link Engine from Chaos.
Should be called from the game thread to create a new solver. After creation, non-standalone solvers are dispatched to the physics thread automatically if it is available
| Name | CreateSolver |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/ChaosSolversModule.h |
| Include Path | #include "ChaosSolversModule.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/ChaosSolversModule.cpp |
Chaos::FPBDRigidsSolver * CreateSolver
(
UObject * InOwner,
Chaos::FReal InAsyncDt,
Chaos::EThreadingMode ThreadingMode,
const FName & DebugName
)
Parameters
| Name | Remarks |
|---|---|
| InOwner | Ptr to some owning UObject. The module doesn't use this but allows calling code to organize solver ownership |
| ThreadingMode | The desired threading mode the solver will use |
| bStandalone | Whether the solver is standalone (not sent to physics thread - updating left to caller) |