Simulating a mechanical system using rpg_core.js
This post is the continuation of the last post.
If you visit the page I have just created, you may find the simulation of a mechanical system.
It is currently depicting two pendulum coupled with a spring (with and , and the original length of the spring is zero, and the two hanging points overlap),
which is a classical example of non-linearly coupled system.
The pattern of the oscillation can be analyzed using discrete Fourier transformation, whose result can be found by clicking the buttons in the up-left corner (after the simulator has detected a period).
Hitting the space bar can make the simulation pause.
If you want to use it to simulate other mechanical systems, you can study the codes I wrote and write your own codes in the console.
By the way, the OpenRGSS version of the simulator is open-source here. Please star the repo if you like it.