Dance of Comets

  scripts
  sprites
See inside
Instructions

Press spacebar to create random comets.

This is a simulation of multiple light objects ("comets") orbiting a single heavy object ("star") under Newtonian gravity (F = GMm/r^2.) The comets are not interacting. The star is assumed to be stationary.

The orbits are obtained by solving numerically the relevant differential equations using Euler method which can be inaccurate when a comet is very close to the star and the acceleration is large.

Notes and Credits

Pen trails are made according to the recipe here: https://en.scratch-wiki.info/wiki/Making_a_Trail

Shared: 6 Jun 2018 Modified: 7 Jun 2018
Favorite this project 0
Love this project 0
Total views 5
View the remix tree  1
  
More projects by psaipetc