Arma 3 Scripting

Function in Geometry

BIS_fnc_terrainGradAngle

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the gradient angle (in radians) of the terrain at a specified position and a compass direction. It is an angle of the slope of a tangent plane to the terrain at the specified position in the specified direction.

Syntax

Parameters:

Returns: Number - gradient angle in radians

Examples

Example 1

private _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;

See also

getDir · surfaceNormal