I am working to learn the Godot engine. I am new to games in general, but like what I have seen. Anyway, in an effort to learn, I am making some basic games. The first of which is moon lander (an oldie but a goodie). I am hoping to learn how to address things on screen, move between game states, figure out procedural terrain etc.
Which type of collision body should I be using for the lander itself? I am hoping to have gravity exerted on the "sprite" without having to write all that stuff. I do, however, want to have the player be able to apply thrust to the sprite to stop it from crashing.
Right not I am using a CollisionPolygon2d node in my scene. My ship scene looks like this:
Node2D (just a way to group)
- CollisionPolygon2d (the collision envelope)
- Sprite (the visual on the screen)
Am I doing this node hierarchy correctly? It's a bit weird this way, but I think it is what I am supposed to do.
How do I apply gravity forces at the containing "Node2d" so all of my stuff moves together? Should I be using a different set of nodes?