terrainIntersectASL: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 15: | Line 15: | ||
For AGL variant, see [[terrainIntersect]]. | For AGL variant, see [[terrainIntersect]]. | ||
|s1= [[terrainIntersectASL]] [ | |s1= [[terrainIntersectASL]] [start, end] | ||
|p1= [ | |p1= start: [[Array]] format [[PositionASL]] - start position | ||
|p2= | |p2= end: [[Array]] format [[PositionASL]] - end position | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
Line 32: | Line 30: | ||
}} | }} | ||
{{Note | |||
|user= Lou Montana | |||
|timestamp= 20120531104000 | |||
|text= Please note the difference: | |||
* terrainIntersect | * terrainIntersect | ||
* terrainIntersectASL | * terrainIntersectASL | ||
* lineIntersect'''''s''''' | * lineIntersect'''''s''''' | ||
* lineIntersect'''''s'''''With | * lineIntersect'''''s'''''With | ||
* lineIntersect'''''s'''''Objs | * lineIntersect'''''s'''''Objs | ||
* intersect | * intersect | ||
}} | |||
{{Note | |||
|user= Rocket | |||
|timestamp= 20120601155500 | |||
|text= This command is CPU intensive on the engine, be careful with its use. | |||
}} | |||
{{Note | |||
|user= bloodwyn1756 | |||
|timestamp= 20190302202900 | |||
|text= If one of the two positions is below sea level, the command always returns true. | |||
}} |
Revision as of 01:51, 25 November 2021
Description
- Description:
- Checks for intersection of terrain between two ASL positions. Returns true if intersects with terrain. For AGL variant, see terrainIntersect.
- Groups:
- Math - Geometry
Syntax
- Syntax:
- terrainIntersectASL [start, end]
- Parameters:
- start: Array format PositionASL - start position
- end: Array format PositionASL - end position
- Return Value:
- Boolean
Examples
- Example 1:
_intersects = terrainIntersectASL [getPosASL player, getPosASL chopper];
- Example 2:
_intersects = terrainIntersectASL [eyePos player, eyePos enemy1];
Additional Information
- See also:
- terrainIntersectAtASLlineIntersectsSurfacesintersectlineIntersectslineIntersectsWithterrainIntersectlineIntersectsObjscheckVisibility
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 May 31, 2012 - 10:40 (UTC)
-
Please note the difference:
- terrainIntersect
- terrainIntersectASL
- lineIntersects
- lineIntersectsWith
- lineIntersectsObjs
- intersect
- Posted on Jun 01, 2012 - 15:55 (UTC)
- This command is CPU intensive on the engine, be careful with its use.
- Posted on Mar 02, 2019 - 20:29 (UTC)
- If one of the two positions is below sea level, the command always returns true.