terrainIntersectAtASL: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Math - Geometry | |gr1= Math - Geometry | ||
|descr= Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]] | |descr= Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]] but returns the intersection ASL position. | ||
|s1= [[terrainIntersectAtASL]] [ | |s1= [[terrainIntersectAtASL]] [start, end] | ||
|p1= | |p1= start: [[Array]] format [[PositionASL]] - start position | ||
| | |p2= end: [[Array]] format [[PositionASL]] - end position | ||
|r1= [[Array]] format [[PositionASL]] - intersect position | |||
|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> | |x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |
Revision as of 01:54, 25 November 2021
Description
- Description:
- Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL but returns the intersection ASL position.
- Groups:
- Math - Geometry
Syntax
- Syntax:
- terrainIntersectAtASL [start, end]
- Parameters:
- start: Array format PositionASL - start position
- end: Array format PositionASL - end position
- Return Value:
- Array format PositionASL - intersect position
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