For making an asteroid game,
I found it hard at first but it’s quite easy.
One of Newton’s law : In the absence of a net external force, a body either is at rest or moves with constant velocity.
We are evolving in space so the last phrase part is our algorithm.
But you might have encountered some problems [...]