Okay so I have a space ship thats firing missiles. I am using Ridgidbody.AddForce to control the ship.
When I fire a projectile I want to add the speed (or momentum) of my ship to the missile, otherwise the faster I travel the missile leaves my ship and either I crash into it, or it trails behind me.
The projectile has a Force variable that applies an AddForce to it once it enters the scene.
asked Mar 15 '11 at 07:11 PM
You could set the velocity of the missile the same as on your ship, then apply impulse force in the direction you want to shoot it at to give it a slight boost. Then keep adding relative force every FixedUpdate for that missile.