About Physics Simulations
Learn about the project and the physics behind the simulations
About This Project
Physics Simulations is an interactive web application designed to help students and enthusiasts understand complex physics concepts through hands-on, visual experimentation. Built with modern web technologies, it brings abstract physics concepts to life through real-time 3D simulations.
Technologies Used
- Three.js - 3D graphics and WebGL rendering
- Three.js Addons - OrbitControls, OrbitTrail, and post-processing
- Chart.js - Real-time data visualization and graphs
- PHP - Server-side routing and API endpoints
- Vanilla JavaScript (ES6+) - Modern client-side application logic
- CSS Custom Properties - Modern styling with CSS variables
- PHP (XAMPP) - Local development server
Simulations Included
Simple Pendulum
Explore simple harmonic motion with a simple pendulum. Adjust length, gravity, and initial angle to observe periodic motion.
Projectile Motion
Launch projectiles and explore parabolic trajectories. Adjust launch angle, initial velocity, and gravity to see trajectory changes.
Mass-Spring System
Explore Hooke's Law and damped harmonic motion. Adjust mass, spring constant, and damping to observe oscillatory behavior.
Orbital Mechanics
Explore planetary orbits and Kepler's laws. Adjust orbital parameters to see elliptical, circular, and escape trajectories.
Double Pendulum
Witness chaotic motion in a double pendulum system. Small changes in initial conditions lead to dramatically different trajectories.
Wave Interference
Explore wave superposition and interference patterns. Create constructive and destructive interference by adjusting wave parameters.
Collisions & Momentum
Collide two balls on a track and watch momentum stay conserved while kinetic energy is lost in inelastic collisions. Adjust masses, velocities and how bouncy the collision is.
Kinetic Theory of Gases
Watch particles bounce inside a container. Heat the gas to speed the particles up, or change the volume and particle count to see the pressure respond — the gas laws in action.
Circular Motion
Whirl a ball on a string in a horizontal circle. Change the radius, angular velocity and mass to see how the speed, centripetal acceleration and string tension change.
Physics Engines
Each simulation uses a custom physics engine implemented in JavaScript:
- Pendulum: Lagrangian mechanics with Runge-Kutta 4th order integration
- Projectile: Kinematic equations with analytical solutions
- Spring: Hooke's law with damped harmonic oscillator (RK4)
- Orbits: Newtonian gravity with RK4 integration
- Double Pendulum: Lagrangian mechanics for chaotic systems (RK4)
- Wave Interference: Superposition principle with real-time visualization