Vector3 set(double x, double y, [double? z]) { z ??= this.z; // sprite.scale.set(x,y) this.x = x; this.y = y; this.z = z; return this; }