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;
void GetPositionsAlongSpline
&40;
TArray< FVector > & OutPositions,
const int32 AgentId,
const USplineComponent &42; SplineComponent,
const int32 PositionNum,
const float StartDistanceAlongSpline,
const float StopDistanceAlongSpline,
const ESplineCoordinateSpace::Type CoordinateSpace
&41; const
Remarks
Gets an array of positions sampled along a spline between some starting and stopping distance. Deals properly for splines which are looped.
Parameters
| Name | Description |
|---|---|
| OutPositions | Output array of spline positions. |
| AgentId | The agent id to run the helper for. |
| SplineComponent | The spline component to use. |
| PositionNum | The number of positions to sample along the spline. |
| StartDistanceAlongSpline | The starting distance along the spline. |
| StopDistanceAlongSpline | The stopping distance along the spline. |
| CoordinateSpace | The coordinate space to use for the spline. |