Class SimulationStateSaveData
Container for all data a ParticleSystem requires to save and load its complete state.
Inheritance
object
SimulationStateSaveData
Namespace: AS2
Assembly: .dll
Syntax
[Serializable]
public class SimulationStateSaveData
Fields
| Edit this page View SourceanchorIdxHistory
The history of the anchor particle indices.
Declaration
public ValueHistorySaveData<int> anchorIdxHistory
Field Value
Type | Description |
---|---|
ValueHistorySaveData<int> |
anchorIsObjectHistory
The history of the flag telling whether the anchor index refers to an object.
Declaration
public ValueHistorySaveData<bool> anchorIsObjectHistory
Field Value
Type | Description |
---|---|
ValueHistorySaveData<bool> |
collisionDebugLines
Declaration
public CollisionChecker.DebugLine[] collisionDebugLines
Field Value
Type | Description |
---|---|
DebugLine[] |
earliestRound
The first round of the simulation (usually 0).
Declaration
public int earliestRound
Field Value
Type | Description |
---|---|
int |
finishedRound
The round in which the simulation finished.
Declaration
public int finishedRound
Field Value
Type | Description |
---|---|
int |
inCollisionState
Indicates whether the simulation is in a collision state or not.
Declaration
public bool inCollisionState
Field Value
Type | Description |
---|---|
bool |
latestRound
The last round of the simulation.
Declaration
public int latestRound
Field Value
Type | Description |
---|---|
int |
objects
The objects in the system (includes their state histories).
Declaration
public ParticleObjectSaveData[] objects
Field Value
Type | Description |
---|---|
ParticleObjectSaveData[] |
particles
The particles in the system (includes their state histories).
Declaration
public ParticleStateSaveData[] particles
Field Value
Type | Description |
---|---|
ParticleStateSaveData[] |