Difference between revisions of "BIS fnc getIntersectionsUnderCursor"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
m (description)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Returns intersections under cursor. |Description=
+
| Returns intersections under cursor. For more information see [[lineIntersectsSurfaces]]. |Description=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 00:59, 7 June 2018

Introduced with Arma 3 version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Returns intersections under cursor. For more information see lineIntersectsSurfaces.

Syntax

Syntax:
[begPosASL, endPosASL, ignoreObj1, ignoreObj2, sortMode, maxResults] call BIS_fnc_getIntersectionsUnderCursor
Parameters:
[begPosASL, endPosASL, ignoreObj1, ignoreObj2, sortMode, maxResults, LOD1, LOD2]: Array
begPosASL: PositionASL - virtual line start
endPosASL: PositionASL - virtual line end
ignoreObj1 (Optional): Object - first object to ignore or objNull: Default: objNull
ignoreObj2 (Optional): Object - second object to ignore or objNull: Default: objNull
sortMode (Optional): Boolean - true: closest to furthest, false: furthest to closest. Default: true
maxResults (Optional): Number - Max results to return. -1 to return every result. Default: 1
Return Value:
Array of intersections in format [[intersectPosASL, surfaceNormal, intersectObj, parentObject],...] where:
  • intersectPosASL - the actual position where line intersects surface
  • surfaceNormal - a normal to the intersected surface
  • intersectObject - the object the surface belongs to (could be proxy object) - objNull if terrain
  • parentObject - the object proxy object belongs to (not always the same as intersect object) - objNull if terrain

Examples

Example 1:
[ eyePos player, aimPos chopper, player, chopper, true ] call BIS_fnc_getIntersectionsUnderCursor;

Additional Information

Execution:
call
See also:
lineIntersectsSurfaces

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.


Notes

Bottom Section