terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9]) *= * <code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
No edit summary
 
Line 19: Line 19:


|seealso= [[terrainIntersectASL]] [[lineIntersectsSurfaces]] [[intersect]] [[lineIntersects]] [[lineIntersectsWith]] [[terrainIntersect]] [[lineIntersectsObjs]] [[checkVisibility]]
|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

Hover & click on the images for description

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:
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
POLPOX - c
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.