8000 GitHub - ataha322/newtonBox: Gravity Simulation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ataha322/newtonBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++/SFML

A moon rotates around its planet. Gravity simulation is implemented, acceleration is proportionate to 1/d^2.

Planet is movable on W/S.

Two classes are created. Moon and planet. Gravity calculations are made in the Moon object with the planet passed in. Objects getting out of frame is resolved by connecting the edges of the window (teleport to the opposite edge).

screenshot

About

Gravity Simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0