25.01.2013, 18:49
Quote:
I need a speed function based on an OBJECT's (a vehicle) velocity (METERS (units) PER SECOND). The calculation would be EXACTLY the same for working out the MPH of an object being moved with MoveObject(). It has NOTHING to do with max speeds or vehicles.
What is the '179.28625' for? |
If you want the accurate speed, calculate it without 'magic number', you'll get the exact speed the vehicle is driving. But are they accurate in relation to the actual world? No. Even though you'll have an accurate function, your cars will be driving unrealistic speeds.
And for the '179.28625', that's the magic number you need to turn the 'accurate velocity speeds' into 'accurate real life speeds'. The problem is, and I've explained it before, is that there is no magic number that works for ALL vehicles.
You can keep on searching all you want. Until you do what I told you in the first reply, you won't have an accurate speed function.