Table of Contents

Class TimeConfiguration

Namespace
Alis.Core.Aspect.Time
Assembly
Alis.dll

The time class

public class TimeConfiguration

Inheritance

Inherited Members

Constructors

TimeConfiguration(float, float, float)

Initializes a new instance of the Alis.Core.Aspect.Time.TimeConfiguration class

public TimeConfiguration(float fixedTimeStep = 0.016, float maximumAllowedTimeStep = 0.1, float timeScale = 1)

Parameters

fixedTimeStep float

The fixed time step

maximumAllowedTimeStep float

The maximum allowed time step

timeScale float

The time scale

Properties

FixedTimeStep

A framerate-independent interval that dictates when physics calculations and FixedUpdate() events are performed.

public float FixedTimeStep { get; set; }

Property Value

float

LogOutput

Gets or sets the value of the log output

public bool LogOutput { get; set; }

Property Value

bool

MaximumAllowedTimeStep

A framerate-independent interval that caps the worst case scenario when frame-rate is low. Physics calculations and FixedUpdate() events will not be performed for longer time than specified.

public float MaximumAllowedTimeStep { get; set; }

Property Value

float

TimeScale

The speed at which time progresses. Change this value to simulate bullet-time effects. A value of 1 means real-time. A value of .5 means half speed; a value of 2 is double speed.

public float TimeScale { get; set; }

Property Value

float