斥力を働かせ合うパーティクル(壁からも斥力)

/** * particles with reputation (walls are also repulsive) * * @author aa_debdeb * @date 2016/06/15 */ float G = 1000.0; float MAX_VEL = 5.0; float MAX_ACC = 1.0; ArrayList<Particle> particles; void setup(){ size(500, 500); particles = new ArrayList<Particle>(); } void draw(){ background(60); for(Pa…</particle></particle>