Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closest Point on a curve spline.
#1
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.
Reply
#2
The only reason GetNearestPointTF() may return -1 (=invalid) is that you call it before the spline is initialized. See "Before using the API" here!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Absolute distance along spline for Shape Extrusion Module amutp 3 224 10-31-2021, 10:26 AM
Last Post: _Aka_
Question Generating a path from selected point to the beginning of spline on a closed spline? Zendariel 5 340 10-29-2021, 01:57 PM
Last Post: _Aka_
  Controller/Spline flipping object topquarkone 4 306 10-28-2021, 05:02 PM
Last Post: _Aka_
  How to find out whether the spline is self-intersected. mydayz 1 198 10-19-2021, 12:08 PM
Last Post: _Aka_

Forum Jump: