variation of the attraction-repulsion relations.
test for polygon class.
spin is controlled by rather obscure relations.
two edges of the canvas contain kinetic energy and share it by contact.
<<

To view this content, you need to install Java from java.com

Source code: spin_1

Built with Processing