This simulation models a two-stage linear inelastic collision. The following equations were used to generate a custom component to calculate the velocities of each mass after impact. mA * vA0 + mB * vB0 = mA * vA1 + mB * vB1vB1 - vA1 = e(vA0 - vB0) Where e is the coefficient of restitution between the objects and m and v are the masses and velocities of objects A and B before and after the collision.