Quite nice and simple solution, but what if I want after press space, spaceship go straight forward in direction that was during space press?
wojtasss | 2018-10-04 17:18
You know the direction (the rotation of the node) so stop the rotation and apply a velocity in that direction. If you have multiple planets you can have them “capture” the ship by changing the ship’s parent. It’s hard to be much more specific because it really depends on how you’re implementing movement and what kind of body you’re using for the ship.
kidscancode | 2018-10-04 19:03
Yes you are right, thanks for help! I am new one here, have some experience with game dev, but I was using Corona SDK, Godot development flow is very different still learn!