Navigation
API > API/Runtime > API/Runtime/Chaos
Used by user code to determine when rewind should occur and gives it the opportunity to record any additional data
| Name | IRewindCallback |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/RewindData.h |
| Include Path | #include "RewindData.h" |
Syntax
class IRewindCallback
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IRewindCallback() |
RewindData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RewindData | Chaos::FRewindData * | Rewind Data holding the callback | RewindData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyCallbacks_Internal
(
int32 PhysicsStep, |
Called after any presim callbacks are triggered and after physics data has marshalled over in order to modify the sim callback outputs | RewindData.h | |
virtual void InjectInputs_External
(
int32 PhysicsStep, |
Called before inputs are split into potential sub-steps and marshalled over to the physics thread. | RewindData.h | |
virtual void PostResimStep_Internal
(
int32 PhysicsStep |
Called after each rewind step. | RewindData.h | |
virtual void PreResimStep_Internal
(
int32 PhysicsStep, |
Called before each rewind step. | RewindData.h | |
virtual void ProcessInputs_External
(
int32 PhysicsStep, |
Called before any inputs are marshalled over to the physics thread. | RewindData.h | |
virtual void ProcessInputs_Internal
(
int32 PhysicsStep, |
Called before any sim callbacks are triggered but after physics data has marshalled over This means brand new physics particles are already created for example, and any pending game thread modifications have happened See ISimCallbackObject for recording inputs to callbacks associated with this PhysicsStep | RewindData.h | |
virtual void RegisterRewindableSimCallback_Internal
(
ISimCallbackObject* Callback |
Register a sim callback onto the rewind callback | RewindData.h | |
virtual void SetResimDebugInfo_Internal
(
const FResimDebugInfo& ResimDebugInfo |
Called When resim is finished with debug information about the resim | RewindData.h | |
virtual int32 TriggerRewindIfNeeded_Internal
(
int32 LatestStepCompleted |
Called after sim step to give the option to rewind. | RewindData.h | |
virtual void UnregisterRewindableSimCallback_Internal
(
ISimCallbackObject* Callback |
Unregister a sim callback from the rewind callback | RewindData.h |