Skip to content

Commit 41b4b7f

Browse files
committed
Merge branch 'master' of https://github.com/rfoligno/matter-js into rfoligno-master
2 parents fbb7c1a + 05f1c46 commit 41b4b7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/Sleeping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var Sleeping = {};
2727
motion = body.speed * body.speed + body.angularSpeed * body.angularSpeed;
2828

2929
// wake up bodies if they have a force applied
30-
if (body.force.x > 0 || body.force.y > 0) {
30+
if (body.force.x !== 0 || body.force.y !== 0) {
3131
Sleeping.set(body, false);
3232
continue;
3333
}
@@ -84,7 +84,7 @@ var Sleeping = {};
8484
}
8585
}
8686
};
87-
87+
8888
/**
8989
* Description
9090
* @method set

0 commit comments

Comments
 (0)