terrainIntersectAtASL: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.68 | |1.68 | ||
|gr1= Math - Geometry | |gr1= Math - Geometry | ||
| Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] | | Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] | ||
| '''terrainIntersectAtASL''' [pos1, pos2] | | '''terrainIntersectAtASL''' [pos1, pos2] | ||
|p1= [pos1, pos2]: [[Array]] | |p1= [pos1, pos2]: [[Array]] | ||
|p2= pos1: [[Array]] - start position in format [[PositionASL]] | |p2= pos1: [[Array]] - start position in format [[PositionASL]] | ||
|p3= pos2: [[Array]] - end position in format [[PositionASL]] | |p3= pos2: [[Array]] - end position in format [[PositionASL]] | ||
| [[Array]] - intersect position in format [[PositionASL]] | | [[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> | ||
|[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] | |[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] | ||
}} | }} |
Revision as of 11:28, 18 January 2021
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