0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

Merge branch 'master' of https://github.com/rfoligno/matter-js into rfoligno-master

This commit is contained in:
liabru 2015-05-20 22:41:38 +01:00
commit 41b4b7f610

View file

@ -27,7 +27,7 @@ var Sleeping = {};
motion = body.speed * body.speed + body.angularSpeed * body.angularSpeed;
// wake up bodies if they have a force applied
if (body.force.x > 0 || body.force.y > 0) {
if (body.force.x !== 0 || body.force.y !== 0) {
Sleeping.set(body, false);
continue;
}