Render a rocket trajectory line in 3D space

Hi, I have a 3D rocket simulator, but I need a way to draw the rocket trajectory in front of it, to show where it is going, in 3D space, for thousands of pixels ahead, so people know how it will orbit. how can I do this?
the game is here, for reference.

Using Pandako’s path drawing extension, I managed to draw a line.

https://pandako.itch.io/pt3

Screenshot 2026-11-02 135813

But how would I set the coordinates to the rocket’s future trajectory, and also
update the coordinates using scene events,
and change the opacity of the path using scene events.