Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
GERewindMgr Class Reference

Support for rewind in GE. More...

Classes

class  RewindEntry
 

Public Types

enum  RewindType {
  IMPULSE_ORBITU , POS_VEL , VELOCITY , MANEUVER ,
  ADD , REMOVE , OFF_RAILS
}
 

Public Member Functions

delegate bool RewindCallback (RewindEntry rewindEntry)
 Callback for rewind event.
 
void SetRewindCallback (RewindCallback rewindCallback)
 
void RecordImpulse (NBody nbody, OrbitUniversal orbitU, double time)
 
void RecordVelocityChange (GravityState gs, NBody nbody, Vector3d vel, double time)
 
void RecordPositionVelocityChange (GravityState gs, NBody nbody, double time)
 
void RecordManeuver (GravityState gs, Maneuver m, double time)
 
void RecordAddBody (NBody nbody, double time)
 
void RecordBodyOffRails (NBody nbody, double time)
 
void RecordRemoveBody (GravityState gs, NBody nbody, double time)
 
List< RewindEntryEntriesAfter (double t)
 
void ApplyEvent (GravityState gs, RewindEntry re)
 
bool HaveEntries ()
 
string DumpAll ()
 

Detailed Description

Support for rewind in GE.

Used when the GE flag rewindModeEnabled is true

Member Function Documentation

◆ RewindCallback()

delegate bool GERewindMgr.RewindCallback ( RewindEntry  rewindEntry)

Callback for rewind event.

Parameters
rewindEntry
Returns
flag indicating if event was handled by callback. If false GE will take required action.

The documentation for this class was generated from the following file: