Skip to content

Attempt to reproduce a solar system with semi-realistic interactions between celestial bodies due to (primarily) gravity. Made using p5.js

Notifications You must be signed in to change notification settings

J404/Solar-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar-System

This project attempts to accurately simulate the movement of celestial bodies due to gravity. The forces of gravity on each planet are automatically calculated, and each planet involved is taken into account.

For example, in a simple solar system with three bodies A, B, and C, planet A is pulled by both body B and C, and planets B and C are both pulled by A.

Scale was attempted to be considered but I found it to be unreasonable when attempting to simulate the vast space between the Earth and the Sun, so I decided on an approach without real life scale taken into account.

However, the gravitational constant G is the same as real life, as well as the equation used to calculate gravitational attraction.

I'm no physicist! This may be wrong (how I'm simulating things).

Made using p5.js & Vue JS Updated for summer 2021 Westerly STEM Camp

About

Attempt to reproduce a solar system with semi-realistic interactions between celestial bodies due to (primarily) gravity. Made using p5.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published