mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
spelling: tweak
This commit is contained in:
parent
93e72efc5d
commit
cffb017297
3 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ Example.ragdoll = function() {
|
|||
counter = 0;
|
||||
|
||||
Events.on(engine, 'afterUpdate', function(event) {
|
||||
// tween the timescale for slow-mo
|
||||
// tweak the timescale for slow-mo
|
||||
if (mouse.button === -1) {
|
||||
engine.timing.timeScale += (timeScaleTarget - engine.timing.timeScale) * 0.05;
|
||||
} else {
|
||||
|
|
|
@ -65,7 +65,7 @@ Example.timescale = function() {
|
|||
|
||||
|
||||
Events.on(engine, 'afterUpdate', function(event) {
|
||||
// tween the timescale for bullet time slow-mo
|
||||
// tweak the timescale for bullet time slow-mo
|
||||
engine.timing.timeScale += (timeScaleTarget - engine.timing.timeScale) * 0.05;
|
||||
|
||||
counter += 1;
|
||||
|
|
|
@ -114,7 +114,7 @@ Example.views = function() {
|
|||
|
||||
// if scale has changed
|
||||
if (Math.abs(boundsScale.x - boundsScaleTarget) > 0.01) {
|
||||
// smoothly tween scale factor
|
||||
// smoothly tweak scale factor
|
||||
scaleFactor = (boundsScaleTarget - boundsScale.x) * 0.2;
|
||||
boundsScale.x += scaleFactor;
|
||||
boundsScale.y += scaleFactor;
|
||||
|
|
Loading…
Add table
Reference in a new issue