Beispiel #1
0
 public CustomFixedUpdate(float aTimeStep, OnFixedUpdateCallback aCallback, float aMaxAllowedTimestep)
 {
     if (aCallback == null)
     {
         throw new System.ArgumentException("CustomFixedUpdate needs a valid callback");
     }
     if (aTimeStep <= 0f)
     {
         throw new System.ArgumentException("TimeStep needs to be greater than 0");
     }
     deltaTime            = aTimeStep;
     m_Callback           = aCallback;
     m_MaxAllowedTimeStep = aMaxAllowedTimestep;
 }
Beispiel #2
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback, float aFPS) : this(aCallback, aFPS, 0f)
 {
 }
Beispiel #3
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback, float aFPS, float aMaxAllowedTimestep) : this(1f / aFPS, aCallback, aMaxAllowedTimestep)
 {
 }
Beispiel #4
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback) : this(0.01f, aCallback, 0f)
 {
 }
Beispiel #5
0
 public CustomFixedUpdate(float aTimeStep, OnFixedUpdateCallback aCallback) : this(aTimeStep, aCallback, 0f)
 {
 }