Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FChaosSolversModule
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/ChaosSolversModule.h |
Include | #include "ChaosSolversModule.h" |
Source | /Engine/Source/Runtime/Experimental/Chaos/Private/ChaosSolversModule.cpp |
Chaos::FPBDRigidsSolver &42; CreateSolver
&40;
UObject &42; InOwner,
Chaos::FReal InAsyncDt,
Chaos::EThreadingMode ThreadingMode
&41;
Remarks
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
Parameters
Name | Description |
---|---|
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) |