Collision model with a lot of cubes acting as a wave
https://chrisboligprojects.pythonanywhere.com/bounceWithFDM
Collisions model a sphere hitting an object’s face. I think the principle should hold for a sphere hitting any 3D volume mesh. Model does not do a good job simulating a 3D volume (non sphere) hitting another 3D volume.
Also, the model is far from perfect. The ball bounces, but does not ‘feel’ the wave velocity. The wave only gets energy in the -y direction imparted when the ball hits.