Topic: Airplane Altitude
Hi ,
Supposed that in "Aircraft script" ,position.y=Altitude .
But at runtime ,it not the same;pos.y increments when altitude changes but they have never the same values. ??
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Airplane Altitude
Hi ,
Supposed that in "Aircraft script" ,position.y=Altitude .
But at runtime ,it not the same;pos.y increments when altitude changes but they have never the same values. ??
Hello.
Position.y is equal to altitude only if you are not using elevations.
Here is the code. Look at the second line:
pos.y = altitude;
if (elevationManager != null) pos.y *= OnlineMapsElevationManagerBase.GetBestElevationYScale(tlx, tly, brx, bry) * elevationManager.scale;
thank you for your answer.
There is a methode to get the altitude even if i'm using elevation or it's complicated ?
Please explain in detail what you want to do, and I will explain the best way to do it.
Sorry for not being too clear..
I want pos.y equal to the real altitude of my airplane even when i'm using elevation for my map.
Use code from post #2.
Infinity Code Forum → Online Maps Help → Airplane Altitude
Powered by PunBB, supported by Informer Technologies, Inc.