mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
appease jshint
This commit is contained in:
parent
a46851597a
commit
23a0fce2c0
4 changed files with 10 additions and 9 deletions
|
@ -905,10 +905,10 @@
|
|||
if (renderController.clear)
|
||||
renderController.clear(_engine.render);
|
||||
|
||||
if (Events) {
|
||||
/*if (Events) {
|
||||
// clear all events
|
||||
//Events.off(_engine);
|
||||
}
|
||||
Events.off(_engine);
|
||||
}*/
|
||||
|
||||
_engine.enableSleeping = false;
|
||||
_engine.world.gravity.y = 1;
|
||||
|
|
|
@ -372,13 +372,13 @@ var Composite = {};
|
|||
object;
|
||||
|
||||
switch (type) {
|
||||
case 'body':
|
||||
case 'body':
|
||||
objects = Composite.allBodies(composite);
|
||||
break;
|
||||
case 'constraint':
|
||||
case 'constraint':
|
||||
objects = Composite.allConstraints(composite);
|
||||
break;
|
||||
case 'composite':
|
||||
case 'composite':
|
||||
objects = Composite.allComposites(composite).concat(composite);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -17,8 +17,9 @@ var Query = {};
|
|||
* @return {object[]} Collisions
|
||||
*/
|
||||
Query.ray = function(bodies, startPoint, endPoint, rayWidth) {
|
||||
rayWidth = rayWidth || Number.MIN_VALUE;
|
||||
|
||||
var rayAngle = Vector.angle(startPoint, endPoint),
|
||||
rayWidth = rayWidth || Number.MIN_VALUE,
|
||||
rayLength = Vector.magnitude(Vector.sub(startPoint, endPoint)),
|
||||
rayX = (endPoint.x + startPoint.x) * 0.5,
|
||||
rayY = (endPoint.y + startPoint.y) * 0.5,
|
||||
|
|
|
@ -175,7 +175,7 @@ var Vertices = {};
|
|||
* @param {number} scaleY
|
||||
* @param {vector} point
|
||||
*/
|
||||
Vertices.scale = function(vertices, scaleX, scaleY, point) {
|
||||
Vertices.scale = function(vertices, scaleX, scaleY, point) {
|
||||
if (scaleX === 1 && scaleY === 1)
|
||||
return vertices;
|
||||
|
||||
|
@ -192,6 +192,6 @@ var Vertices = {};
|
|||
}
|
||||
|
||||
return vertices;
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
Loading…
Reference in a new issue