Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/USplineComponentHelper
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;
float GetProportionAlongSplineAsAngle
&40;
const int32 AgentId,
const USplineComponent &42; SplineComponent,
const float DistanceAlongSpline
&41; const
Remarks
Gets the proportion along a spline encoded as an angle between -180 and 180 degrees for a given distance. This should be used for looped splines. The proportion along the spline encoded as an angle between -180 and 180 degrees
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id to run the helper for. |
| SplineComponent | The spline component to use. |
| DistanceAlongSpline | The distance along the spline to use. |