This is the simulation of pendulum depend on a differential equation: θ''(t)=-μ'(t)-(g/L)sin(θ(t)) Welcome! Since the Control UI and Pause Mode was added in v1.0.0(see Update Log for more), you can control the initial value of the angle (also θ) conveniently: Press [Space] to pause. Move your mouse to the direction you want the pendulum be. Click there or press [Enter] to confirm and exit Pause Mode. If you don't want to confirm (or simply want to pause to check or debug), press [Space] again to exit it without setting. Notice: Don't get it too high or it will be mad (specifically rotating all the way without stopping), and this is actually not a bug, but for the reason of a too big value of the acceleration. If you still want to do so, go inside and change the value of Δt to 0.01, which will make it slower but more accurate. I am working on the `Recommanded Value` feature, which will change Δt automatically.
Inspired from 3Brown1Blue's Maths video: https://youtu.be/p_di4Zn4wz4 All code by @MapMaths Chinese version by @gitignore : https://scratch.mit.edu/projects/561846070 Since the calculation is a bit much, I hope your computer can hold it. (Mine can't sometimes LOL) Mostly for a play, also for a tool~ #Pendulum #Physics #Engine #ODE #单摆 #模拟器 Update Log 1.2.0 06/12/21 [New features] Added trail effects. Added topbar (which will be used in v2.0.0), using ease-in-out animation. 1.1.1 04/10/21 [Bug Fixed] Improved the thumbnail/loading page to cover the whole page. 1.1.0 22/08/21 [Bug Fixed] The feature of stopping the Pendulum when no accelaration to save the calculation has been moved in v1.0.0beta2.3 since there are many bugs, but in this version I've fixed them. [Small changes] Update initialization Deleted all `Pop` sounds to make it easier to load. [Building] Prepare to make the Topbar. 1.0.0 21/08/21 [Important] First Stable Version!!! [New features] Create the Control UI and Initialization Method. Added "θ" symbol and vertical line (To prepare for Debugging Mode) Added Pause Mode. [Small changes] Hide all variables. (To prepare for Setting Mode) Update Thumbnail. Get the shapes a bit more close to center. 1.0.0beta2 20/08/21 [Important] Added Thumbnail! Wrote this Update Log [Small changes] Simplified the code. Smallened the ball on one top of the stick. 1.0.0beta1 19/08/21 [Important] Upload to Scratch! Shared! Wrote the document. 1.0.0alpha1~4 17/08/21~19/08/21 [Important] Began the project and fixed bugs(Made In llk.github.io).