Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Colliding balls

  1. May 8, 2010 #1
    I'm trying to understand how to calculate the collision of two balls e.g. billiard balls.

    I found a java simualtion of colliding balls.
    However I don't understand the equations that were used there.
    The code for calculating the velocity vectors is at
    http://www.interactivepulp.com/pulpcore/bubblemark/src/Ball.java [Broken]
    in the doCollide method.
    The java applet is here
    http://www.interactivepulp.com/pulpcore/bubblemark/ [Broken]

    I don't get what the variable "mag" means? What does mag stand for?
     
    Last edited by a moderator: May 4, 2017
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted