Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closest Spline & control points loop in both directions
#5
(01-20-2021, 07:37 PM)_Aka_ Wrote: That method do exist. Here is how to use it
CurvySpline.GetNearestPointTf(inputPosition, out outputPosition, Space.World)


Yeah, I know that, but I meant something different. Given only a Vector3 world position - is it possible to find the closest CurvySpline from it? Or do I have to manually get all the splines and find the closest point on each and then select the one with the smallest distance (from the input world position to the closest point)?
Reply


Messages In This Thread
RE: Beginner's questions - Closest spline & closest point on spline - by nehvaleem - 01-20-2021, 09:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: