This package simulates the elastic, inelastic, or partially elastic collisions between two balls using the VPython library. It contains modules to define the physical and visual properties of the balls, perform the simulation, and visualize the collision in a 2D space.
-
ball_collision_sim
: The main module that runs the system. It manages the entire simulation process, including initialization, running the simulation, and handling collisions.ball_sim_enums
: Contains enums used by the system.ball_sim_parameters
: Contains classes to store parameter data needed by the system.ball_sim
: Contains theBall
class which represents the balls in the system.ball_sim_info
: Contains classes to hold info/state of the system.tests
: Tests for the Ball Collision Simulator system.
For detailed API documentation, see: Ball Collision Simulator API Documentation