Hello!
I have seen some matching topics here that tackle the same problem, but the solution there or at least how it's communicated is difficult to understand for me as math is really not my thing.
I use the physics engine with the actual ship and a simulated ship to draw the predicted path. For the simulated ship, I loop an impulse to calculate the velocity at the current position, just to teleport it afterwards to the correct predicted position. I need impulses as there is no time in a loop passing, but force needs time.
This works actually quite well, as long as the real ship has zero velocity. In the video, you can see that the first drawn path is the correct prediction for the ship.
Before every calculation, I reset the position and velocity to start fresh, but once the actual ship is in motion, it appears that velocity isn't counted in correctly. That's why I added an initial impulse in the 4th event, as it made the first predicted path very correct.
Here a video: imgur.com/a/hYhbD4l
Here the c3p file: dropbox.com/scl/fi/naijbi9yw4u7pzyp79ap1/Spacetravel.c3p
There appears to be some smart people here. I'd really appreciate some help or advice.
If you feel like rewriting my event setup, you're very welcome to :)
Thank you!!