Permalink
Browse files

fixed issue in point/point closes #1

  • Loading branch information...
1 parent 4cd7b2a commit b0ddd12245b46382c3a6bccc29efdfd0afa2e2e0 @bmoren committed Feb 21, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 p5.collide2d.js
View
@@ -378,8 +378,8 @@ p5.prototype.collidePointPoint = function (x,y,x2,y2, buffer) {
if(buffer == undefined){
buffer = 0;
}
-
- if(dist(x,y,z,x2) <= buffer){
+
+ if(dist(x,y,x2,y2) <= buffer){
return true;
}

0 comments on commit b0ddd12

Please sign in to comment.