BIS fnc terrainGradAngle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-_]+)\]\]([^<]*)<\/code>" to "= <code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-_]+)\]\]([^<]*)<\/code>" to "= <code>$1$2$3</code>") |
||
Line 19: | Line 19: | ||
|r1= [[Number]] - gradient angle in radians | |r1= [[Number]] - gradient angle in radians | ||
|x1= <code>private _radGrad = [getPos player, getDir player] call | |x1= <code>private _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;</code> | ||
|seealso= [[getDir]] [[surfaceNormal]] | |seealso= [[getDir]] [[surfaceNormal]] | ||
}} | }} |
Revision as of 16:57, 13 July 2022
Description
- 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.
- Execution:
- call
- Groups:
- Geometry
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object or Position
- direction: Number - direction where should be gradient calculated (compass direction)
- delta: Number - which stepsize should be used
- Return Value:
- Number - gradient angle in radians
Examples
- Example 1:
private _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;
Additional Information
- See also:
- getDir surfaceNormal
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