I'm making a game where a spaceship needs to orbit another object in space at a set distance.
Space is, unlike other game, like space is in reality. Friction less. (at least to my understanding)
How do I calculate the direction and strength of the impulse that one "space ship" must emit in order to fall in to and maintain an orbit around another object?
Note on gravity
There is none in this simulation. Yet.
My own thoughts so far
To maintain the orbit, the impulse would always have to be directed directly towards the object.
I think my problem is how to fall into the orbit. What I do so far is I try to aim for a point 90 degrees off from my own incoming vector, and as I approach closer I turn towards the object and impulse towards it.
I think my problem is very related to that I do not keep to a maximum speed on my approach, this makes me fly wildly out of the orbit right away.