Add planetary masses.

This commit is contained in:
2026-03-21 13:05:28 +01:00
parent abe90847ea
commit c038867810
8 changed files with 162 additions and 7 deletions
+4 -2
View File
@@ -41,11 +41,13 @@ void ship_init(struct ship *ship, float x, float y);
/**
* @brief Updates the ship's variables according to keyboard
* input.
* input and gravitational forces.
*
* @param ship A pointer to the ship object.
* @param gravity_x Gravitational acceleration in x direction.
* @param gravity_y Gravitational acceleration in y direction.
*/
void ship_update(struct ship *ship);
void ship_update(struct ship *ship, float gravity_x, float gravity_y);
/**
* @brief Draw the ship.