update method
Implementation
@override
void update() {
position = rotateFromCenter(position, center, angle);
angle = angleVelocity; // baseAngle + angleVelocity
angleVelocity += angleAcceleration;
if (angleVelocity > 0.1) {
angleVelocity = .1;
}
if (angleVelocity < -0.1) {
angleVelocity = -.1;
}
angleAcceleration = randomDouble(-0.01, 0.01);
}