I have several projectiles and I want to be able to specify magnitude for how far they should travel before being destroyed. Right now I'm calculating the time it would take them to travel a distance and supplying it to debris service. Is there any other way to do this? I'm concerned that because of latency or lag or other problems that may arise, the real time the projectile is in the air would be inaccurate.
I'm thinking of doing a loop check for the projectile to compute distance from origin until it passes the max distance, but this seems pretty expensive especially with multiple projectiles. Any ideas for this would be appreciated.