screenToWorldDirection: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix) |
Lou Montana (talk | contribs) m (Add devbranch) Tag: Reverted |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|branch= dev | |||
|gr1= Positions | |gr1= Positions |
Revision as of 19:06, 6 August 2024
Description
- Description:
- Returns the 3D vector in world corresponding to the given point on the screen (in UI coordinates), as if the vector was aiming from the camera to the screen position.
- Groups:
- Positions
Syntax
- Syntax:
- screenToWorldDirection screen
- Parameters:
- screen: Array - screen position [x,y] (see SafeZone for more info)
- Return Value:
- Array - Vector3D world vector
Alternative Syntax
- Syntax:
- camera screenToWorldDirection position
- Parameters:
- camera: Object - camera object
- position: Array - screen position [x,y] (see SafeZone for more info)
- Return Value:
- Array - Vector3D world vector
Examples
- Example 1:
Additional Information
- See also:
- SafeZone worldToScreen screenToWorld
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