/* ---------------------------------------------- Computing Kaizen Studio Advanced Studio VI Spring 2010 Columbia University GSAPP Distressed Bodies Code by Biayna Bogosian http://www.arch.columbia.edu/ http://proxyarch.com/kaizen This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License -----------------------------------------------*/ import traer.physics.*; class Node { float x,y,z,mass; PVector location; Particle theParticle; boolean bound, dead; Node(float _x, float _y, float _z){ theParticle = physics.makeParticle( 1.0, _x, _y, _z); location = new PVector(x,y); bound = false; dead = false; } void update(){ if(!dead){ float x = theParticle.position().x(); float y = theParticle.position().y(); float z = theParticle.position().z(); location = new PVector(x,y,z); } } }