BIS fnc terrainGradAngle: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Geometry(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Geometry |GROUP1= | |gr1 = Geometry |GROUP1= | ||
| Returns the gradient angle (in radians) of the terrain at a specified position and a compass direction. | | 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. |Description= | It is an angle of the slope of a tangent plane to the terrain at the specified position in the specified direction. |Description= | ||
| <!-- [object, direction, delta] call [[BIS_fnc_terrainGradAngle]]; --> |Syntax= | | <!-- [object, direction, delta] call [[BIS_fnc_terrainGradAngle]]; --> |Syntax= | ||
Line 22: | Line 19: | ||
| [[Number]] - gradient angle in radians |Return value= | | [[Number]] - gradient angle in radians |Return value= | ||
|x1= <code>_radGrad = [<nowiki/>[[getPos]] [[player]], [[getDir]] [[player]]] [[call]] [[BIS_fnc_terrainGradAngle]];</code> |Example 1= | |x1= <code>_radGrad = [<nowiki/>[[getPos]] [[player]], [[getDir]] [[player]]] [[call]] [[BIS_fnc_terrainGradAngle]];</code> |Example 1= | ||
| [[getDir]], [[surfaceNormal]] |See also= | | [[getDir]], [[surfaceNormal]] |See also= |
Revision as of 23:48, 16 January 2021
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
Additional Information
- See also:
- getDirsurfaceNormal
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