surfaceNormal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Arma 2: Operation Arrowhead: New Scripting Commands List" to "Category:Arma 2: Operation Arrowhead: New Scripting Commands")
m (Text replacement - "\[https?\:\/\/en\.wikipedia\.org\/wiki\/([^ ]+) (.+)\]" to "{{Wikipedia|$1|$2}}")
Line 7: Line 7:
|gr1= Positions
|gr1= Positions


| Returns [http://en.wikipedia.org/wiki/Normal_(geometry) surface normal] on given position.
| Returns {{Wikipedia|Normal_(geometry)|surface normal}} on given position.


| '''surfaceNormal''' position
| '''surfaceNormal''' position

Revision as of 15:54, 30 May 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Positions

Syntax

Syntax:
Syntax needed
Parameters:
position: Array - format Position2D or Position3D in which case Z will be ignored
Return Value:
Return value needed

Examples

Example 1:
_normal = surfaceNormal [300, 500];
Example 2:
_normal = surfaceNormal position player;

Additional Information

See also:
setVectorUpsurfaceIsWatersurfaceType

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