Question: Hi, I am creating a snooker app here using p5.js and matter.js libraries. I render with p5.js. May I know how could I implement collision


Hi, I am creating a snooker app here using p5.js and matter.js libraries. I render with p5.js. May I know how could I implement collision detection between the balls and the pockets? I want to remove the balls from the array if they entered the pockets. thank you.
Ball class * class Ball f constructor (x,y){ this. balls =[]; for (Let i=;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
