terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 8: Line 8:
|descr= Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]]
|descr= Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]]


|s1= '''terrainIntersectAtASL''' [pos1, pos2]
|s1= '''terrainIntersectAtASL''' [pos1, pos2]


|p1= [pos1, pos2]: [[Array]]
|p1= [pos1, pos2]: [[Array]]

Revision as of 23:52, 19 June 2021

Hover & click on the images for description

Description

Description:
Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL, only returns intersect position instead of Boolean
Groups:
Math - Geometry

Syntax

Syntax:
terrainIntersectAtASL [pos1, pos2]
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