Skip to content

Commit

Permalink
Merge pull request #9 from davidgranstrom/topic/fix-collidePointArc
Browse files Browse the repository at this point in the history
Fix collidePointArc and update minified version
  • Loading branch information
bmoren authored Jun 7, 2017
2 parents e61cb71 + e24063a commit 41c9530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p5.collide2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ p5.prototype.collidePointArc = function(px, py, ax, ay, arcRadius, arcHeading, a

if (point.dist(arcPos) <= (arcRadius + buffer)) {
var dot = radius.dot(pointToArc);
var angle = p5.Vector.angleBetween(radius, pointToArc);
var angle = radius.angleBetween(pointToArc);
if (dot > 0 && angle <= arcAngle / 2 && angle >= -arcAngle / 2) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion p5.collide2d.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41c9530

Please sign in to comment.