0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

added docs for engine.timing.isFixed

This commit is contained in:
liabru 2014-06-21 22:39:55 +01:00
parent 6dd0c05f41
commit e22ceebed5

View file

@ -544,6 +544,16 @@ var Engine = {};
* @default 0 * @default 0
*/ */
/**
* A `Boolean` that specifies if the `Engine.run` game loop should use a fixed timestep (otherwise it is variable).
* If timing is fixed, then the apparant simulation speed will change depending on the frame rate (but behaviour will be deterministic).
* If the timing is variable, then the apparant simulation speed will be constant (approximately, but at the cost of determininism).
*
* @property timing.isFixed
* @type boolean
* @default false
*/
/** /**
* A `Number` that specifies the time step between updates in milliseconds. * A `Number` that specifies the time step between updates in milliseconds.
* If `engine.timing.isFixed` is set to `true`, then `delta` is fixed. * If `engine.timing.isFixed` is set to `true`, then `delta` is fixed.