mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removed center() method, added getCenter(), updated examples
This commit is contained in:
@@ -36,7 +36,8 @@ class Particle {
|
||||
velocity = new PVector(cos(a), sin(a));
|
||||
velocity.mult(speed);
|
||||
lifespan = 255;
|
||||
part.center(x,y);
|
||||
PVector center = part.getCenter();
|
||||
part.translate(x - center.x, y - center.y);
|
||||
}
|
||||
|
||||
boolean isDead() {
|
||||
|
||||
Reference in New Issue
Block a user