surfaceNormal: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
|s1= [[surfaceNormal]] position | |s1= [[surfaceNormal]] position | ||
|p1= position: | |p1= position: [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] - when using [[Position#Introduction|Position3D]], Z is ignored | ||
|r1= | |r1= [[Vector3D]] | ||
|x1= <sqf>_normal = surfaceNormal [300, 500];</sqf> | |x1= <sqf>_normal = surfaceNormal [300, 500];</sqf> | ||
Latest revision as of 07:54, 2 January 2026
Description
- Description:
- Returns terrain's surface normal on given position.
- Groups:
- Positions
Syntax
- Syntax:
- surfaceNormal position
- Parameters:
- position: Position2D or Position3D - when using Position3D, Z is ignored
- Return Value:
- Vector3D
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- setVectorUp surfaceIsWater surfaceType
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note