TrueSync
Public Member Functions | Public Attributes | List of all members
TrueSync.TrueSyncConfig Class Reference

Represents a set of configurations for TrueSync. More...

Inheritance diagram for TrueSync.TrueSyncConfig:

Public Member Functions

bool GetIgnoreLayerCollision (int layerA, int layerB)
 Returns true if the collision between layerA and layerB should be ignored.
 

Public Attributes

int syncWindow = 10
 Synchronization window size.
 
int rollbackWindow = 0
 Rollback window size.
 
int panicWindow = 100
 Maximum number of ticks to wait until all other players inputs arrive.
 
bool physics2DEnabled = true
 Indicates if the 2D physics engine should be enabled.
 
bool[] physics2DIgnoreMatrix = new bool[COLLISION_TOGGLES]
 Holds which layers should be ingnored in 2D collisions.
 
TSVector2 gravity2D = new TSVector2(0, -10)
 Represents the simulated gravity.
 
bool speculativeContacts2D = false
 If true enables a deeper collision detection system.
 
bool physics3DEnabled = true
 Indicates if the 3D physics engine should be enabled.
 
bool[] physics3DIgnoreMatrix = new bool[COLLISION_TOGGLES]
 Holds which layers should be ingnored in 3D collisions.
 
TSVector gravity3D = new TSVector(0, -10, 0)
 Represents the simulated gravity.
 
bool speculativeContacts3D = false
 If true enables a deeper collision detection system.
 
bool showStats = false
 When true shows a debug interface with a few information.
 
FP lockedTimeStep = 0.02f
 Time between each TrueSync's frame.
 

Detailed Description

Represents a set of configurations for TrueSync.

Definition at line 8 of file TrueSyncConfig.cs.


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