A good old sim
Controls:
You can interact with the pendulums via left and right click drag, and pause with Space or Ctrl (still interactive)
Parameters:
You can set different parameters for the sim using the input box that *might* show up at the top of the page, if that's the case:
Exit all the input prompts to go with the defaults
Or
You can set each parameter in each dialogue box that shows up (input character for default) in this order:
- Screen width
- Screen height
- A number for the accuracy of the simulation (positive, the smaller the more accurate, default is 0.001)
- Pendulum's thickness (1 or 2 pixels)
- Initial angle of first pendulum (rad)
- Initial angle of second pendulum (rad)
- Initial angular velocity of first pendulum (rad/s)
- Initial angular velocity of second pendulum (rad/s)
- Length of first pendulum (m)
- Length of second pendulum (m)
- Mass of first pendulum (kg)
- Mass of second pendulum (kg)
- Simulation speed (1 is real time)
- Air resistance (should be around 0.1)
Enjoy :D
Also I borrowed 😉 the formulas at the end of this page https://www.myphysicslab.com/pendulum/double-pendulum-en.html and just did a simple numerical approx by iterating on lil steps. Check em out they have cool stuff
Status | In development |
Platforms | HTML5, Windows |
Author | MeatBallDestroyer |
Genre | Simulation |
Download
Download
CodeJam.exe 105 kB
Leave a comment
Log in with itch.io to leave a comment.