new AxTimeRateMechanism(context)
Creates a new time rate mechanism.
This mechanism yields the current time rate of the scene
Parameters:
Name | Type | Description |
---|---|---|
context |
Axis | The context to use for the mechanism |
Methods
Process(deltaTime) → {Boolean}
Performs the routines of the mechanism and returns whether the mechanism should continue to be processed the next frame
Parameters:
Name | Type | Description |
---|---|---|
deltaTime |
Number | The time in milliseconds, between the previous and the current call. Used to perform time based routines |
Returns:
True, if the mechanism hasn't finished its job and should continue to be processed in the next frame
- Type
- Boolean