Removed getCenter method in PShape

This commit is contained in:
codeanticode
2012-05-23 23:42:13 +00:00
parent a5a572fb8d
commit 8a56dafe12
3 changed files with 3 additions and 23 deletions
@@ -34,9 +34,9 @@ class Particle {
float speed = random(0.5,4);
velocity = new PVector(cos(a), sin(a));
velocity.mult(speed);
lifespan = 255;
PVector center = part.getCenter();
part.translate(x - center.x, y - center.y);
lifespan = 255;
part.resetMatrix();
part.translate(x, y);
}
boolean isDead() {