javafx collision detection (simple)
i have a question, i am making a simple game with javafx, and i want to use collision detection.
i have got to nodes (circle1 and circle2) which move trough the scene. When they hit eachother
i want them to disappear, but i have no idea how to manage this. I have been looking around on
the internet, but it was way too difficult for me to understand or it was something too different
from my project,
i was hoping someone could help me out
Thanks in advance
--- Update ---
I am sorry, i accidently posted in the wrong section.
I thought i was in the right section, but apparently i was not.
Re: javafx collision detection (simple)
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Here's a thought. Read this tutorial that has a good discussion of collision detection and how to program it in JavaFX, and tell us what you don't understand about it. You might find this author's whole tutorial (starts here) and do that to cement what is being presented.