Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsHelper
- USplineComponentHelper
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsHelpers.h |
| Include | #include "LearningAgentsHelpers.h" |
Syntax
UCLASS&40;&41;
class USplineComponentHelper : public ULearningAgentsHelper
Remarks
A helper for computing various properties from a SplineComponent.
Functions
| Type | Name | Description | |
|---|---|---|---|
| USplineComponentHelper * | AddSplineComponentHelper
(
ULearningAgentsManagerComponent* InManagerComponent, |
Adds a new spline component helper to the given manager component. | |
| FVector | GetDirectionAtDistanceAlongSpline
(
const int32 AgentId, |
Gets the direction along a spline at the given distance. | |
| float | GetDistanceAlongSplineAtPosition
(
const int32 AgentId, |
Gets the distance along a spline closest to the provided position. | |
| FVector | GetNearestPositionOnSpline
(
const int32 AgentId, |
Gets the position on a spline closest to the provided position. | |
| FVector | GetPositionAtDistanceAlongSpline
(
const int32 AgentId, |
Gets the position along a spline at the given distance. | |
| void | GetPositionsAlongSpline
(
TArray< FVector >& OutPositions, |
Gets an array of positions sampled along a spline between some starting and stopping distance. | |
| float | GetProportionAlongSpline
(
const int32 AgentId, |
Gets the proportion along a spline in the range 0-1 for a given distance. | |
| float | GetProportionAlongSplineAsAngle
(
const int32 AgentId, |
Gets the proportion along a spline encoded as an angle between -180 and 180 degrees for a given distance. | |
| float | GetVelocityAlongSpline
(
const int32 AgentId, |
Gets the velocity a point is traveling along a spline. |