0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

appease jshint

This commit is contained in:
liabru 2014-04-29 15:29:21 +01:00
parent a46851597a
commit 23a0fce2c0
4 changed files with 10 additions and 9 deletions

View file

@ -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;

View file

@ -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,