Mr0o / Orbit-simulator

An elliptical orbit thing using pygame and basic vector math.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Orbit-simulator

An elliptical orbit thing using pygame and basic vector math.

Inspiration for this came from The Coding Train where he explains vectors and some of the math behind them https://www.youtube.com/watch?v=bKEaK7WNLzM&list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM&index=10

written in python using pygame for input and basic graphics output

Move the mouse around and the circle will be pulled towards the mouse

Use the WIDTH and HEIGHT variables to change the screen size

Press the SPACEBAR to see the vectors

Feel free to do whatever you would like with this

About

An elliptical orbit thing using pygame and basic vector math.

License:MIT License


Languages

Language:Python 100.0%