Loading Physics Engine...

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.

Simple Harmonic Motion Period & Frequency Energy Conservation Small Angle Approximation
🚀

Projectile Motion

Launch projectiles and explore parabolic trajectories. Adjust launch angle, initial velocity, and gravity to see trajectory changes.

Parabolic Trajectory Range & Maximum Height Time of Flight Velocity Components
🌸

Mass-Spring System

Explore Hooke's Law and damped harmonic motion. Adjust mass, spring constant, and damping to observe oscillatory behavior.

Hooke's Law Simple Harmonic Motion Damping Effects Energy Conservation
🪐

Orbital Mechanics

Explore planetary orbits and Kepler's laws. Adjust orbital parameters to see elliptical, circular, and escape trajectories.

Kepler's Laws Orbital Mechanics Gravitational Force Escape Velocity

Double Pendulum

Witness chaotic motion in a double pendulum system. Small changes in initial conditions lead to dramatically different trajectories.

Chaos Theory Sensitive Dependence Phase Space Non-linear Dynamics
🌊

Wave Interference

Explore wave superposition and interference patterns. Create constructive and destructive interference by adjusting wave parameters.

Wave Superposition Constructive Interference Destructive Interference Standing Waves
🎱

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.

Conservation of Momentum Elastic vs Inelastic Coefficient of Restitution Kinetic Energy
💨

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.

Particle Model of Matter Temperature & Kinetic Energy Pressure Gas Laws (P ∝ NT/V)
🎡

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.

Uniform Circular Motion Centripetal Force Angular Velocity Period & Frequency

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