I'd like to toggle multiple booleans with one toggle in cp5.
I have two booleans showGrid and redrawGrid. When showGrid is toggled it should toggle the redrawGrid boolean which then gets toggled back after the grid is drawn to the buffer.
Do I use a listener? I can't figure out the syntax…
I need to calculate collisions between moving spheres within a polygon and the edges of the polygon.
Does anyone have a snippet to share?
I have no problem determining if I'm inside the poly it's more about getting the collisions to be right when they hit an edge with respect to return angle, velocity, friction, etc. etc.
I'm sure it's been done. Would love to save some late night hours for more creative coding.