Orbdale Terrain · OrbdaleTerrain module · member function
UOrbdaleTerrainLibrary::
GetGradeAlong
BlueprintRise over run of the ground along a horizontal direction (0.1 = 10 percent, positive uphill).
Declaration
UFUNCTION(BlueprintCallable, Category="Orbdale|Terrain|Query", meta=(="Location,Direction", ="WorldContextObject"))
static bool GetGradeAlong(const UObject* WorldContextObject, const FVector& Location, const FVector& Direction, double& OutGrade,
EOrbdaleTerrainSurface Surface = EOrbdaleTerrainSurface::Modified);Blueprint Get Grade Along
The graph as text
- Get Grade Along (function call)
- In Location (Vector): (0.0, 0.0, 0.0)
- In Direction (Vector): (0.0, 0.0, 0.0)
- In Surface (EOrbdaleTerrainSurface): Modified
- Out Out Grade (Double): not connected
- Out Return Value (Boolean): not connected
- Header
#include "OrbdaleTerrainLibrary.h"- Module
PublicDependencyModuleNames.Add("OrbdaleTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Game thread (Blueprint). (the rule of UOrbdaleTerrainLibrary)
- Blueprint
- Get Grade Along, in Orbdale › Terrain › Query
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
WorldContextObject | const UObject* | — | Any object in the world whose terrain is read; supplies the world. |
Location | const FVector& | — | World cm; Z is ignored. |
Direction | const FVector& | — | World direction; Z is ignored and the length does not matter. |
OutGrade | double& | — | Rise over run, positive uphill; 0 when there is no answer. |
Surface | EOrbdale | EOrbdale | Which ground to read ( |
Returns
false when there is no ground, or the direction has no horizontal part.