im try to find out what current position my falling circle on transition have. What do i need for it? A timer to set each sec. the position of circle? Or any suggestion how to get the real position value.
This code shows a part of my hitOuterCirlce method and even the same getCenterX – value of the circle:
// (x-u)*(x-u) + (y-v) )*(y-v) < (r * r)
// outer circle:
double u = 2 * (3.141 * circle.getRadius());
double res1 = (circle.getCenterX() - u) * (circle.getCenterX() - u);
double v = (1.333 * 3.141) * (circle.getRadius() * circle.getRadius()) * circle.getRadius();
double res2 = (circle.getCenterY() - v) * (circle.getCenterY() - v);
double res3 = (circle.getRadius() * circle.getRadius());
How can i fix this?
greetz
just bind to centerX/Y property of circle
Sample Code :