Skip to main content
100%

Projectile Motion Simulator

✓ Published1🌍 Public
NNita
Last edited Apr 22, 2025
Created on Apr 22, 2025

This interactive animation illustrates projectile motion physics using the quadratic height equation, plotting trajectory as a D3 line path with a moving circle representing the object. Sliders allow adjustment of launch angle, initial velocity, height, and gravity, with the trajectory path and computed metrics like maximum height and range updating accordingly. The code relies on D3 scales, axes, and interval-based animation, generating synthetic data through the flight-time formula on each parameter change. A play button restarts the motion sequence.

AI-generated description

Projectile Motion Simulator

This interactive visualization demonstrates the physics of projectile motion using the quadratic equation:

h(t) = -½gt² + v₀sinθ·t + h₀

Where:

  • h(t) is the height at time t
  • g is the acceleration due to gravity (9.8 m/s² on Earth)
  • v₀ is the initial velocity
  • θ is the launch angle
  • h₀ is the initial height

Features

  • Visualize the trajectory of a projectile
  • Adjust launch angle, initial velocity, initial height, and gravity
  • View key metrics like maximum height, range, and time of flight
  • Interactive controls for experimenting with different parameters

How to Use

  1. Use the sliders to adjust the physics parameters
  2. Watch how changes affect the trajectory
  3. Click "Reset to Defaults" to return to the initial settings
MIT Licensed

Similar vizzes