Page MenuHomeFeedback Tracker

[Feature Request] Alternative command to "getPos" for returning the height above the walkable surface
New, NormalPublic

Description

There are times where one might need to detect the height above the closest "walkable" surface at a position. One such application would be to create a "landing pad" for helicopters on top of another object.

Using lineIntersectsSurfaces is not an option because it doesn't support the "roadWay" lod.

The only solution at the moment is to:

  1. Create a test vehicle
  2. Transfer the test vehicle to the desired coordinates using setPosXXX
  3. Using the (getPos _vehicle select 2) command to return the height above the surface.

If there was a built in command that could return the same result without any need to create a unit, it would be more convenient and hopefully faster, because getPos has a relatively high execution time (~0.01-0.02 ms) which is even worse when combined with the whole process above.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Feature Request
Additional Information

Sample command:

getSurfaceHeight position

Position: positionASL - the position where surface height is needed

If possible, maybe a companion command getSurfaceNormal position can also be helpful. (which returns the walkable surface normal at a 3D positionASL, not necessarily terrain normal like surfaceNormal)

Alternatively, you can update the lineIntersectsSurfaces command to support the "roadWay" lod as well.

Event Timeline

Leopard20 edited Additional Information. (Show Details)
Leopard20 edited Additional Information. (Show Details)
Leopard20 renamed this task from [Feature Request] Alternative command to "getPos" for returning the height of the walkable surface to [Feature Request] Alternative command to "getPos" for returning the height above the walkable surface.
This comment was removed by BIS_fnc_KK.
This comment was removed by BIS_fnc_KK.
Leopard20 updated the task description. (Show Details)Apr 22 2020, 8:13 PM
Leopard20 edited Additional Information. (Show Details)
Leopard20 updated the task description. (Show Details)Apr 22 2020, 8:16 PM
Leopard20 updated the task description. (Show Details)