Jeff Ava
0
Q:

javafx detect collision

if(rectangle1.getBoundsInParent.intersects(rectangle2.getBoundsInParent)){

//do something

}
1

New to Communities?

Join the community