Fix improper missile acceleration
Previously mentioned in the forums:
This thread: https://forum.keenswh.com/threads/missile-flight-path-not-at-target.7394085/
This thread: https://forum.keenswh.com/threads/missiles-shooting-behind-target-when-mobile.7390976/
Shooting a missile in a moving ship at another ship moving at zero relative velocity will cause the missile to arc backwards. After experimenting, I believe the issue is with missile acceleration. Its initial velocity is correct, but not the final velocity.
Here's what I believe is happening:
Missiles accelerate to the incorrect frame (world frame). Their velocity starts out as 100*(Turret aim direction)+velocity of ship. Due to acceleration, it appears their final speed will be 200*(Turret aim direction). It should end up as 200*(Turret aim direction)+v_ship.
This isn't just limited to turrets. It happens to anything that shoots a missile, and even mods which code their ammos as missiles instead of projectiles (like gatlings, which behave correctly)
shared this idea 26/08/17 10:17