terrainIntersectAtASL: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <dl class="command_description"> </dl>" to "") |
No edit summary |
||
(26 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.68 | |||
|1.68 | |||
|gr1= Math - Geometry | |gr1= Math - Geometry | ||
| 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]] [start, end] | ||
|p1= | |p1= start: [[Array]] format [[Position#PositionASL|PositionASL]] - start position | ||
| | |||
| [[Array]] | |p2= end: [[Array]] format [[Position#PositionASL|PositionASL]] - end position | ||
| | |||
| | |r1= [[Array]] format [[Position#PositionASL|PositionASL]] - intersect position | ||
|x1= <sqf>_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];</sqf> | |||
|seealso= [[terrainIntersectASL]] [[lineIntersectsSurfaces]] [[intersect]] [[lineIntersects]] [[lineIntersectsWith]] [[terrainIntersect]] [[lineIntersectsObjs]] [[checkVisibility]] | |||
}} | |||
{{ | {{Note | ||
|user= POLPOX | |||
|timestamp= 20231210085523 | |||
|text= This command will tell you that it finds an intersect if either of argument position is under the sea eg {{hl|[0,0,-10]}} even if there is no clear intersection with a terrain surface between them. | |||
}} |
Latest revision as of 09:55, 10 December 2023
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:
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 or on the Forums.
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.