Raycasting bullets with fast moving PLAYER

I found excellent code here in the forum today - a post by Twiik with his raycast bullet code for fast moving bullets (based on Spk’s Paintrain thread apparently).

This code great, BUT, my vehicle (in this case a space craft) is moving very fast when a bullet is fired. Since my bullet is now a gameobject with no ridgidobject - how would I go about inheriting the velocity of my spaceship when I bullet is fired?

I didn’t do great in physics, but I assume that if my space craft is traveling diagonally forward and to the side at a certain velocity when firing a bullet then the bullet should inherit the space craft forward and sideways velocity in addition to it’s own velocity, right? When I fire a bullet now it looks odd because if I go forward very fast the trail of the bullet is actually behind my space craft =)

The velocity of the bullet is your ship velocity + launch/fire velocity.