I'm using this code to make a square that orbits a circle . When I use it however the
rect(); is quite far away from the circumference of the circle, I would like to make it closer. All variables are floats.
XPos are the x and y of the circles origin.
charx = XPos + cos(angle)*Sizes; chary = YPos + sin(angle)*Sizes; angle += 0.1; fill(255,255,255); rect(charx, chary, 10,10);}
Any idea what I should change? This is probably something very simple, but I'm very new to Java.