Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/ChaosSolversModule.h |
Include |
#include "ChaosSolversModule.h" |
Source |
/Engine/Source/Runtime/Experimental/Chaos/Private/ChaosSolversModule.cpp |
Chaos::FPBDRigidsSolver * CreateSolver
(
UObject * InOwner,
Chaos::EThreadingMode ThreadingMode
)
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
Parameter |
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) |