How to stop overlapping of boxes in animation of n coupled masses in visual python?
How to stop overlapping of boxes in animation of n coupled masses in visual python?
You have provided a program that wont run, since eig is undefined. That makes it impossible to explore your problem.
Here is an example of a program with many springs and masses:
https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/AtomicSolid-VPython
Click View this program to see the code.
I note that you are using a VERY old version of VPython. See vpython.org for information on how to use a current version.