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 GetVelocityAlongSpline
&40;
const int32 AgentId,
const USplineComponent &42; SplineComponent,
const FVector Position,
const FVector Velocity,
const float FiniteDifferenceDelta,
const ESplineCoordinateSpace::Type CoordinateSpace
&41; const
Remarks
Gets the velocity a point is traveling along a spline. The scalar velocity the point is traveling along the spline.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id to run the helper for. |
| SplineComponent | The spline component to use. |
| Position | The position of the point. |
| Velocity | The velocity of the point. |
| FiniteDifferenceDelta | The finite difference delta used to estimate the velocity along the spline. |
| CoordinateSpace | The coordinate space to use for the spline. |