07/21/2026 - Gravity Upgrades / Collisions / Game Phases. Today I spent a good part of my time getting collisions working well between the lander (spaceship) and the moon. Used simple ray casting to determine if the rocket intersected the moon. Then was some gravity upgrades. Previously I just added gravity to the vertical velocity constant so it was very simple and did not always pull the rocket into the moon, so I altered it using something closer to real life where gravitational strength is dependent on the gravitational constant divided by distance between both objects squared (was too lazy to implement false masses of both objects). Lastly fixed some errors in the way the game determines winning. To win, the lander has to arrive at the landing spot with a sub 2 speed and 25 degree landing angle which makes the landing seem more realistic. A Heads Up Display should be viable to create tomorrow.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.