terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Math - Geometry |GROUP1=
|gr1= Math - Geometry |GROUP1=
____________________________________________________________________________________________


| Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] |DESCRIPTION=
| Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] |DESCRIPTION=
____________________________________________________________________________________________


| '''terrainIntersectAtASL''' [pos1, pos2] |SYNTAX=
| '''terrainIntersectAtASL''' [pos1, pos2] |SYNTAX=
Line 19: Line 16:


| [[Array]] - intersect position in format [[PositionASL]] |RETURNVALUE=
| [[Array]] - intersect position in format [[PositionASL]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |EXAMPLE1=
|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |EXAMPLE1=


____________________________________________________________________________________________


|[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] |SEEALSO=
|[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] |SEEALSO=

Revision as of 03:56, 17 January 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

Notes

Bottom Section