Oh i just got it thanks so much for your help!!


getWorld().addObject(viralload, getX(), getY()+radius/2);
viralload.move(radius);
viralload.setRotation(-degFull);
RectangleMeter rectangle = (RectangleMeter)getWorld().getObjects(RectangleMeter.class).get(0);
double rectRatio = rectangle.getFilledRatio();