Guys i am trying to move a sprite from one point to another in a semi circle
this is the formula i have found to move a sprite in a semi circle
if(x < radius*2){
y = (int) Math.sqrt(Math.pow(radius, 2) - Math.pow(x, 2));
x++;
sprite.setPosition(x, y);
}
x is initialized to -radius
But the problem is that it draws the semicircle around 0,0 or the origin
I cant get it to shift
Just need a pointer