PyPlanetsA gravitational simulator written in Python and PyGame | |
Download |
PyPlanets Ranking & Summary
Advertisement
- License:
- Freeware
- Publisher Name:
- Mateus Zitelli
- Publisher web site:
- http://github.com/MateusZitelli
PyPlanets Tags
PyPlanets Description
A gravitational simulator written in Python and PyGame PyPlanets is a gravitational simulator app written in Python that use PyGame to show the results in the screen. Is based in newtonian formula of gravitation, but in the future I will implementate relativistic correction.How to run:cd directory_where_PyPlanet_is./PyPlanets width heightor./PyPlanets #to run in default mode (600x480)Installation for GNU/Linux:cd directory_where_PyPlanet_issudo mv PyPlanets /usr/bin/chmod +x /usr/bin/PyPlanets#And now you only need to run:PyPlanetsKeys:Arrows => move the camera.O => Create a Uniform square with the bodies.T => Create bodies randomly in the screen.N + Left Click => Create a new body (The speed of the object is defined by the distance and direction that the mouse is dragged.)S => Makes a image of the gravitational field. #have problemsC => Clean the screen.R => Draw the trace of the objects. (On/Off)P => Pause the simulation. (On/Off)D => Demo situation. (3 body problem)+/- => Control of the zoom.0 => Reset the zoom to default. Requirements: · Python · pygame What's New in This Release: · Some bugs resolved.
PyPlanets Related Software