PSystem ps; Arcball arcball; Surface bone; Particle p; class RectParticle extends Particle { public RectParticle() { Spring s = ps.addSpring(p, this); s.restLength = 50; s.strength = 0.1; } } void setup() { size(500,500); arcball = (Arcball)loadPlugin("Arcball"); ps = (PSystem)loadPlugin("PSystem"); ps.setGravity(0); bone = ps.loadSurface("bone.obj"); bone.scale(10); p = new Particle(); p.fix(); ps.addParticle(p); bone.applyParticles("Layer_01", new RectParticle()); bone.applyParticles("Layer_02", new RectParticle()); bone.applyParticles("Layer_03", new RectParticle()); } void loop() { background(100, 200, 50); translate(width/2, height/2); arcball.run(); fill(200, 200, 200); stroke(100, 100, 100, 100); bone.draw(); ps.draw(); }