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 GetProportionAlongSpline
&40;
const int32 AgentId,
const USplineComponent &42; SplineComponent,
const float DistanceAlongSpline
&41; const
Remarks
Gets the proportion along a spline in the range 0-1 for a given distance. The proportion along the spline in the range 0-1.
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. |