-
Notifications
You must be signed in to change notification settings - Fork 1
DawnTime
Roland Vink edited this page Mar 21, 2018
·
1 revision
I've copied the contents from the DawnTime module here so we have it saved. I removed it in my recent PR as I couldn't see it being used anywhere.
'use strict';
(function(exports) {
function DawnTime(decoratedEngine) {
this._decoratedEngine = decoratedEngine;
};
DawnTime.prototype.speed = function(input) {
var current_speed = this._decoratedEngine.matterEngine().timing.timeScale
var speed = input || current_speed
this._decoratedEngine.matterEngine().timing.timeScale = input
return speed
};
exports.DawnTime = DawnTime;
})(this);