Created by Maximillian DeMarr
Last major update: 2025-05-21
Interactive 3D simulation of a double pendulum built using GlowScript. This project simulates real-time motion based on Lagrangian mechanics and Euler integration.
👉 Click here to launch the simulation in your browser
- Click "Running" to pause or play the simulation.
- Use the Simulation Step dropdown to adjust precision (larger steps run faster, less accurately).
- Drag masses to reposition them manually (pause first for best results).
- Right-click + drag to rotate the view, and use your scroll wheel to zoom.
- Toggle Show Graphs for energy tracking (note: high detail may reduce performance).
- If motion becomes erratic, increase Damping or reload the page.
The system is modeled using the Euler-Lagrange equations, with angular accelerations derived symbolically and solved numerically using the forward Euler method.
⚠️ This project defines positions in the following way. This is opposite to the conventional vertical orientation, due to how Glowscript handles axes.
Kinetic Energy:
Potential Energy:
where
This repo uses:
- SymPy for symbolic derivation of motion equations → EOM Parser Repo
- GlowScript for 3D browser-based physics rendering
Maximillian DeMarr
Built with curiosity, calculus, and caffeine ☕.
For inquiries or collaborations, feel free to reach out!
