I am not sure, but this looks like something that could be created with blender. Is your query how you would recreate something like that animation? or is it to see the underlying code?<p><a href="https://www.blender.org/features/simulation/" rel="nofollow">https://www.blender.org/features/simulation/</a><p>You could probably create something similar and then find the source code files if that is what you really want to see.