In my opinion see screenX screenY equivalent in p5.js
so it’s another way of picking: each cube stores it’s 2D screen pos.
When the mouse is clicked, check mouseX,mouseY against the 2D screen pos using dist() command
In my opinion see screenX screenY equivalent in p5.js
so it’s another way of picking: each cube stores it’s 2D screen pos.
When the mouse is clicked, check mouseX,mouseY against the 2D screen pos using dist() command