Skip to content

Commit

Permalink
fix missing T_VECTORS.push()
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Mar 23, 2014
1 parent ec00187 commit b98d748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SAT.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@
var differenceV = T_VECTORS.pop().copy(p).sub(c['pos']);
var radiusSq = c['r'] * c['r'];
var distanceSq = differenceV.len2();
T_VECTORS.push(differenceV);
// If the distance between is smaller than the radius then the point is inside the circle.
return distanceSq <= radiusSq;
}
Expand Down Expand Up @@ -930,4 +931,4 @@
SAT['testPolygonPolygon'] = testPolygonPolygon;

return SAT;
}));
}));

0 comments on commit b98d748

Please sign in to comment.