terrainIntersectAtASL: Difference between revisions
No edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 10: | Line 10: | ||
|s1= [[terrainIntersectAtASL]] [start, end] | |s1= [[terrainIntersectAtASL]] [start, end] | ||
|p1= start: | |p1= start: [[Position#PositionASL|PositionASL]] - start position | ||
|p2= end: | |p2= end: [[Position#PositionASL|PositionASL]] - end position | ||
|r1= | |r1= [[Position#PositionASL|PositionASL]] - intersect position | ||
|x1= <sqf>_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];</sqf> | |x1= <sqf>_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];</sqf> | ||
Latest revision as of 07:46, 2 January 2026
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: PositionASL - start position
- end: PositionASL - end position
- Return Value:
- PositionASL - intersect position
Examples
- Example 1:
Additional Information
- See also:
- terrainIntersectASL lineIntersectsSurfaces intersect lineIntersects lineIntersectsWith terrainIntersect lineIntersectsObjs checkVisibility
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
- Posted on Dec 10, 2023 - 08:55 (UTC)
- This command will tell you that it finds an intersect if either of argument position is under the sea eg [0,0,-10] even if there is no clear intersection with a terrain surface between them.