Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I get the closest Spline Control Point
#1
I've tried figuring out how to get the closet control point but nothing I've found gets me what I need. The closest I could find was TFToSegment, but that gives me a segment, not the control points. 

I'm trying to get the closest control point to my mouse position, so if I had a spline of 2 control points, and I'm at the start of a spline, I'd be at control point 1, if I was at the end of the spline, I'd be at control point 2
Reply
#2
Hi
Control Points being normal unity GameObjects, you can apply on them any solution for finding the closest game object. Such solutions can be easily found on the internet.
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Constant speed along a spline? tfishell 1 41 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 3,175 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 4,531 07-13-2025, 07:11 PM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 1,676 06-07-2025, 09:44 AM
Last Post: _Aka_

Forum Jump: