Download

[UE 4.25][BUG] SplineComponent::GetInputKeyAtDistanceAlongSpline() does not return the right value

How to replicate:

float InputDistance = Spline->GetDistanceAlongSplineAtSplinePoint(23)
float InputKeyFromDistance = Spline->GetInputKeyAtDistanceAlongSpline(InputDistance)

Expected return: 23
Returned value: 23 but divided by the last input key of the spline

So in a spline with 101 points, instead of returning 23 it will return 23 / 100 = 0.23