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 RayCastRadial
&40;
TArray< float > & OutDistances,
const int32 AgentId,
const FVector Position,
const FRotator Rotation,
const int32 RayNum,
const float MinAngle,
const float MaxAngle,
const float MaxRayDist,
const FVector LocalForward,
const ECollisionChannel CollisionChannel
&41; const
Remarks
Casts rays out in a radius from a given position.
Parameters
| Name | Description |
|---|---|
| OutDistances | The output array of distances for each ray from the start position. |
| AgentId | The agent id to run the helper for. |
| Position | The central position of the ray cast. |
| Rotation | The orientation of the ray cast. |
| RayNum | The number of rays to cast. |
| MinAngle | The minimum angle to spread the rays. |
| MaxAngle | The maximum angle to spread the rays. |
| MaxRayDist | The maximum distance at which to shoot rays. |
| CollisionChannel | The collision channel to use for the ray-casts. |