USplineComponent::GetInputKeyAtDistanceAlongSpline is wrong

Hi ,
I do not concur. When a function uses Duration to calculate the result its signature has the suffix “AtTime”. This funcion uses Duration and has not that suffix and there is no alternative to get and input key from distance indepently from Duration.

Take a look at the comment, no mention to duration is given…

/** Given a distance along the length of this spline, return the corresponding input key at that point */
UFUNCTION(BlueprintCallable, Category=Spline)
float GetInputKeyAtDistanceAlongSpline(float Distance) const;

…but in all “AtTime” funcions duration is mentioned. For example:

/** Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there. */
UFUNCTION(BlueprintCallable, Category=Spline)
FVector GetDirectionAtTime(float Time, ESplineCoordinateSpace::Type CoordinateSpace, bool bUseConstantVelocity = false) const;

The expected would be to deprecate this function and add two more, one Duration dependent and the other independent, I think.

Regards,

.