WOLFRAM SYSTEM MODELER
Components used in the Newton's Cradle example
Ball
PlanarMechanics body with eqations for potential and kinetic energy calculations
Collision
Collision model for two colliding masses
SystemModel["EducationExamples.Physics.NewtonsCradle.Components"]