Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Point of collision between Shapes

2939537May 25 2015 — edited May 30 2015

Hello

I have a problem in with colissions in JavaFX.

First, i detect a collision between a line and a circle using the follow code:

if(line.getBoundsInParent().intersects(circle.getBoundsInParent())){

System.out.println("Collision!");

}

After this, i need catch the coordinate of collision, like the below figure:

line_circle_javafx_2.jpg

Anyone knows how catch this coordinate?

[]'s

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2015
Added on May 25 2015
1 comment
1,009 views