Jump to content

Recommended Posts

Posted

I may help to start thinking on it, cause I can't exactly provide the solution you asked for:

 

You could try to track the y position of the helicopter, and then subtract the terrain altitude using the land.getHeight function.

 

i.e.

 

local pos = Unit.getByName('Pilot 1'):getPosition().p

local HeliPos = { 
  x = pos.point.x, 
  y = pos.point.z, 
  z = pos.point.y 
} 

local TerrainPos = land.getHeight({x = HeliPos.x, y = HeliPos.z})

AltitudeFromTerrain = HeliPos.y - TerrainPos

 

You will get the result in meters.

 

But I may assume that this way will give you the radar altitude on the terrain, but I don't think it will take into account the presence of buildings or anything else.

 

Another way is to track the radar altimeter readings (I don't remember now how it is done... I may take a look if you want), but I think that it should be limited at the same limit of the radar altimeter: since that you fly Kamov if I remember correctly, that would limit the reading to 300 mt.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

che è quello che ti ho scritto sopra ;)

 

L'altro metodo che conosco è quello di tracciare le letture degli strumenti, cosa che però comporta due problemi:

 

1- devi essere nel velivolo. non mi risulta funzioni per i velivoli IA.

2- le letture sono soggette alle limitazioni dello strumento, in termini di risoluzione ed estremi (es. Ka-50 max 300 mt)

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted
che è quello che ti ho scritto sopra ;)

 

L'altro metodo che conosco è quello di tracciare le letture degli strumenti, cosa che però comporta due problemi:

 

1- devi essere nel velivolo. non mi risulta funzioni per i velivoli IA.

2- le letture sono soggette alle limitazioni dello strumento, in termini di risoluzione ed estremi (es. Ka-50 max 300 mt)

 

grazie chromium avevo capito,ma devo trovare un metodo!

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...