|
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. Any ideas? The projectile has a Force variable that applies an AddForce to it once it enters the scene.
(comments are locked)
|
|
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.
(comments are locked)
|
