get the outline of multiple intersecting shapes javafx code example
Example: javafx detect collision
if(rectangle1.getBoundsInParent.intersects(rectangle2.getBoundsInParent)){
//do something
}
if(rectangle1.getBoundsInParent.intersects(rectangle2.getBoundsInParent)){
//do something
}