File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ Example.views = function() {
9898 y : 1
9999 } ;
100100
101- // use the engine tick event to control our view
102- Events . on ( engine , 'beforeTick ' , function ( ) {
101+ // use a render event to control our view
102+ Events . on ( render , 'beforeRender ' , function ( ) {
103103 var world = engine . world ,
104104 mouse = mouseConstraint . mouse ,
105105 translate ;
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ var Common = require('./Common');
101101 /**
102102 * A game loop utility that updates the engine and renderer by one step (a 'tick').
103103 * Features delta smoothing, time correction and fixed or dynamic timing.
104- * Triggers `beforeTick`, `tick` and `afterTick` events on the engine.
105104 * Consider just `Engine.update(engine, delta)` if you're using your own loop.
106105 * @method tick
107106 * @param {runner } runner
You can’t perform that action at this time.
0 commit comments