Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGPolyLineData
Description
Get a value [0,1] representing how far along the point is to the end of the line. Each segment on the line represents a same-size interval. For example, if there are three segments, each segment will take up 0.333... of the interval.
| Name | GetAlphaAtDistance |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGPolyLineData.h |
| Include Path | #include "Data/PCGPolyLineData.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Data/PCGPolyLineData.cpp |
UFUNCTION (BlueprintCallable, Category="PolylineData")
virtual float GetAlphaAtDistance
(
int SegmentIndex,
double Distance
) const