Skip to content

MRIExperimentState::MRIExperimentState

Class: MRIExperimentState

Overloads

Overload 1

MRIExperimentState::MRIExperimentState(double time)

Constructs a state snapshot for the given simulation time.

Parameters

Parameter Type Description
time double Simulation time in seconds at which this frame was captured.

Remarks

time Simulation time in seconds at which this frame was captured.

Overload 2

MRIExperimentState::MRIExperimentState(double time, int frame)

Constructs a state snapshot for the given simulation time and frame number.

Parameters

Parameter Type Description
time double Simulation time in seconds.
frame int Zero-based replay frame index.

Remarks

time Simulation time in seconds. frame Zero-based replay frame index.

Overload 3

MRIExperimentState::MRIExperimentState(double time, int frame, TArray< const UMRIAgentComponent * > agents)

Constructs a state snapshot and immediately records states for all given agents.

Parameters

Parameter Type Description
time double Simulation time in seconds.
frame int Zero-based replay frame index.
agents TArray< const UMRIAgentComponent * > Array of agent components to visit and record.

Remarks

time Simulation time in seconds. frame Zero-based replay frame index. agents Array of agent components to visit and record.

Overload 4

MRIExperimentState::MRIExperimentState(double time, int frame, TArray< const UMRIAgentComponent * > agents, AMRISubjectState *playerState)

Constructs a state snapshot with agent states and subject player state.

Parameters

Parameter Type Description
time double Simulation time in seconds.
frame int Zero-based replay frame index.
agents TArray< const UMRIAgentComponent * > Array of agent components to visit and record.
playerState AMRISubjectState * The subject's replicated player state.

Remarks

time Simulation time in seconds. frame Zero-based replay frame index. agents Array of agent components to visit and record. playerState The subject's replicated player state.