Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closest Point on a curve spline.
Hi everyone,

   I'm new using Curvy plugin. I want to get the closest point on a spline from an arbitrary point in the space but I'm stuck. 

   I've created a closed curvy spline. When the game starts, I create a sphere in the world and then I look for the nearest point. I'm using the method curvySpline.GetNearestPointTF(spherePosition) but it always return -1.

   What am I doing wrong?

Thanks in advance.
The only reason GetNearestPointTF() may return -1 (=invalid) is that you call it before the spline is initialized. See "Before using the API" here!

Possibly Related Threads…
Thread Author Replies Views Last Post
  Align to spline action and rotation Lupp_ 3 39 01-23-2021, 08:12 PM
Last Post: _Aka_
  Beginner's questions - Closest spline & closest point on spline nehvaleem 5 96 01-20-2021, 09:37 PM
Last Post: _Aka_
  Vector3 array from spline Philip 3 132 01-09-2021, 02:16 PM
Last Post: _Aka_
  Input Spline Path Material Option not suported Andrei 3 221 12-15-2020, 12:20 PM
Last Post: _Aka_

Forum Jump: