Description

When the USplineComponent::GetDistanceAlongSplineAtSplinePoint() function is called, the value returned is not accurate if the point approaches the range of 0 - 10 % or 90-100% of the spline.

Steps to Reproduce
  1. Open UE4 Editor
  2. Add blueprint based on Actor (ActorBP)
  3. Add spline component to blueprint
  4. Right click the center of the spline and select Add Spline Point Here (Ref Point)
  5. In event graph, add reference to spline component
  6. From Spline comp ref, add Get Distance Along Spline at Spline Point node
  7. Wire return value to a Print String node
  8. Wire input execution pin of Print String to Event Tick
  9. PIE with the Blueprint Viewport accessable
  10. In the blueprint viewport, select Ref Point and use the widget to drag it along the X axis (red)

Result:
Value printed in editor viewport does not reach 0.

Expected:
Value printed represents selected point's distance from point 0 (start) of the spline

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

5
Login to Vote

Unresolved
ComponentTools
Affects Versions4.13
CreatedSep 26, 2016
UpdatedMar 14, 2018