Navigation
API > API/Runtime > API/Runtime/Chaos
Base solver class storing events that will be used by the derived solver during the solve. Currently used by caching but could be used for any other pre/post solve works that need to be done.
| Name | FPhysicsSolverEvents |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/PhysicsSolverBase.h |
| Include Path | #include "Chaos/Framework/PhysicsSolverBase.h" |
Syntax
class FPhysicsSolverEvents
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FPhysicsSolverEvents() |
Only allow construction with valid parameters as well as restricting to module construction | Chaos/Framework/PhysicsSolverBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDelegateHandle AddPostAdvanceCallback
(
FSolverPostAdvance::FDelegate InDelegate |
Post advance happens after all processing and results generation has been completed | Chaos/Framework/PhysicsSolverBase.h | |
FDelegateHandle AddPreAdvanceCallback
(
FSolverPreAdvance::FDelegate InDelegate |
Events WARNING: Events are not threadsafe! Pre advance is called before any physics processing or simulation happens in a given physics update | Chaos/Framework/PhysicsSolverBase.h | |
FDelegateHandle AddPreBufferCallback
(
FSolverPreAdvance::FDelegate InDelegate |
Pre buffer happens after the simulation has been advanced (particle positions etc. will have been updated) but GT results haven't been prepared yet | Chaos/Framework/PhysicsSolverBase.h | |
FDelegateHandle AddTeardownCallback
(
FSolverTeardown::FDelegate InDelegate |
Teardown happens as the solver is destroyed or streamed out | Chaos/Framework/PhysicsSolverBase.h | |
void ClearCallbacks() |
Clear all the callbacks | Chaos/Framework/PhysicsSolverBase.h | |
bool RemovePostAdvanceCallback
(
FDelegateHandle InHandle |
Chaos/Framework/PhysicsSolverBase.h | ||
bool RemovePreAdvanceCallback
(
FDelegateHandle InHandle |
Chaos/Framework/PhysicsSolverBase.h | ||
bool RemovePreBufferCallback
(
FDelegateHandle InHandle |
Chaos/Framework/PhysicsSolverBase.h | ||
bool RemoveTeardownCallback
(
FDelegateHandle InHandle |
Chaos/Framework/PhysicsSolverBase.h |