Bounce two balls

edited February 2016 in How To...

I'm working on a ball bounce system, but having trouble calculating the angle for each.

I'd prefer not to use the Vector class because I'd like to do a more hands-on approach.

Each object of class Ball has an X and Y velocity, as well as an X and Y position. What's the best way to make two balls bounce off each other at any angle with only two sets of velocities?

Thanks

Tagged:

Answers

Sign In or Register to comment.