Hye all,

I had a difficulty in codes a ball collision in java. Is there anyone could help me to code it. Here the requirement:

1) There will be two balls in the same size.
2) They move randomly at constant speed until they meet each other.
3) Once collided, they move in a different direction.
4) And the balls will move slower (less velocity) before they collided.

I could appreciate more if anyone could help me in this. and I need an immediate response.
Thanks :)

Recommended Answers

All 3 Replies

What have you coded so far?
Will this be using a gui or is it only console presentation of the values?

I dont have the idea to code, using gui. Sorry, I don't have any experience in writing this codes. Hope that anyone could help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.