Javascript Physics Engine 3
Here is another update on the physics engine. This time it is all about circles colliding with other circles. Still perfectly elastic collisions. The collision mechanism can now cope with an overlap so stuff doesn’t stick together.
Also collisions with different mass objects have been implemented so now big circles are heavier and the effects on the collisions are apparent. This version is more interesting to watch since the balls bounce off at lots of different angles depending how they hit each other.
Rectangle collision has been removed because it was only a small experimental measure. It will go under the polygon collision category since rectangles are polygons. The object creation back end has been modified to add the polygon object. Creating a rectangle now does in fact create a polygon in the background although you cannot see this.