terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
Line 15: Line 15:
|p3= pos2: [[Array]] - end position in format [[PositionASL]]
|p3= pos2: [[Array]] - end position in format [[PositionASL]]


| [[Array]] - intersect position in format [[PositionASL]]
|r1= [[Array]] - intersect position in format [[PositionASL]]


|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code>
|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code>

Revision as of 14:20, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Math - Geometry

Syntax

Syntax:
Syntax needed
Parameters:
[pos1, pos2]: Array
pos1: Array - start position in format PositionASL
pos2: Array - end position in format PositionASL
Return Value:
Array - intersect position in format PositionASL

Examples

Example 1:
_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];

Additional Information

See also:
terrainIntersectASLlineIntersectsSurfacesintersectlineIntersectslineIntersectsWithterrainIntersectlineIntersectsObjscheckVisibility

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note