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
  Syncing UI Spline and Regular 3D Spline arrnav96 8 305 03-21-2019, 12:13 PM
Last Post: _Aka_
  How do I find closest spline ? dazz777 4 294 02-20-2019, 09:47 AM
Last Post: dazz777
  Rotation issue on a Parented Spline Controller Karthik7Nike 6 899 12-07-2018, 09:35 AM
Last Post: _Aka_
  Generated meshes not 'parallel' to spline Alexey 8 1,284 11-20-2018, 07:13 PM
Last Post: Alexey

Forum Jump: