jkruse7 / cs1666_pixelstellar

2 stars 5 forks source link

Gravity for player and pixels #26

Open korysanchez opened 4 days ago

korysanchez commented 4 days ago

Create a gravity force, which is a trait that can be inherited by the player, and any pixel elements. should mostly match real gravity, i.e. will accelerate towards 9.8 m/s.

Chisato243 commented 4 days ago

1m = ??? pixels

korysanchez commented 4 days ago

lets say 1 for now

korysanchez commented 43 minutes ago

The calculations for gravity are done in the player file, but we should abstract the calculations to be done in the gravity.rs file. We'll leave this to a future date however, as it's currently functional for the player.