Hit Detection with Arbitrary Shapes

Does P5.js currently support hit detection for irregular shapes? A star for example.

Comments

  • Processing, and therefore P5.js, is a rather low level framework, so it doesn't offer any hit detection facility, even for regular shapes. At best, it gives dist() to testing collision of circles...

Sign In or Register to comment.