Skip to content

Adds features, does some code clean up, and moves Body class to it's own file #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

quonic
Copy link

@quonic quonic commented Jun 6, 2019

Adds collisions, which adds mass and velocity
Adds feature where the "screen" will follow the center of mass for all Bodies
Adds feature where a line is drawn to virtual 0,0 to the screen's center
Moves Body class to it's own file
Checks name is == to main, just in case multiprocessing is used later
Moves Body class to this file
Removes acceleration as it isn't needed
Adds id for unique identifying bodies
Adds hit and invuln for collision detection
Moves n-body logic to Body class
Moves calculate_forces to Body class
Creates update_size
Moved G constant to here as it isn't needed in main script file

quonic added 2 commits June 6, 2019 03:22
Adds collisions, which adds mass and velocity
Adds feature where the "screen" will follow the center of mass for all Bodies
Adds feature where a line is drawn to virtual 0,0 to the screen's center
Moves Body class to it's own file
Checks __name__ is == to __main__, just in case multiprocessing is used later
Moves Body class to this file
Removes acceleration as it isn't needed
Adds id for unique identifying bodies
Adds hit and invuln for collision detection
Moves n-body logic to Body class
Moves calculate_forces to Body class
Creates update_size
Moved G constant to here as it isn't needed in main script file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants