Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/URayCastHelper
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsHelpers.h |
| Include | #include "LearningAgentsHelpers.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsHelpers.cpp |
UFUNCTION&40;BlueprintPure&61;false, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void RayCastGridHeights
&40;
TArray< float > & OutHeights,
const int32 AgentId,
const FVector Position,
const FRotator Rotation,
const int32 RowNum,
const int32 ColNum,
const float RowWidth,
const float ColWidth,
const float MaxHeight,
const float MinHeight,
const ECollisionChannel CollisionChannel
&41; const
Remarks
Samples a grid of heights from above.
Parameters
| Name | Description |
|---|---|
| OutHeights | The output array of heights for each ray in the grid. |
| AgentId | The agent id to run the helper for. |
| Position | The central position of the grid. |
| Rotation | The orientation of the grid. |
| RowNum | The number of rows in the grid. |
| ColNum | The number of columns in the grid. |
| RowWidth | The width of grid rows. |
| ColWidth | The width of grid columns. |
| MaxHeight | The height at which to start ray casts from. |
| MinHeight | The height at which to send ray casts to. |
| CollisionChannel | The collision channel to use for the ray-casts. |