FChaosSolversModule::CreateSolver

Create a new solver state storage object to contain a solver and proxy storage object.

Windows
MacOS
Linux

References

Module

ChaosSolvers

Header

/Engine/Source/Runtime/Experimental/ChaosSolvers/Public/ChaosSolversModule.h

Include

#include "ChaosSolversModule.h"

Source

/Engine/Source/Runtime/Experimental/ChaosSolvers/Private/ChaosSolversModule.cpp

Syntax

Chaos::FPhysicsSolver * CreateSolver
(
    UObject * InOwner
)

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

Parameter

Description

InOwner

Ptr to some owning UObject. The module doesn't use this but allows calling code to organize solver ownership

bStandalone

Whether the solver is standalone (not sent to physics thread - updating left to caller)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss