Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get list of control points
Hi so I need to get a list of control points at a connection.

I've looked in the API and found this
but I just don't know how to use it basically.

This is the code I'm using ( provided by aka ), which has worked well so far, but now I need to find what control points are part of the connection.
public override CurvySplineSegment SelectConnectedControlPoint(SplineController caller, CurvyConnection connection, CurvySplineSegment currentControlPoint)

// my own logic here for returning curvysplinesegment
return currentControlPoint;

It would be very much appreciated if you could provide a example of how to get a list of control points.


EDIT - I've worked it out  Smile

Although I used other controls points instead ( which is actually better )
Just in case anyone else struggling with this 
foreach (CurvySplineSegment con_Point in connection.OtherControlPoints(currentControlPoint))
Debug.Log (;

Thanks for sharing your findings
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Aligning objects from points on spline Lupp_ 6 433 03-11-2021, 08:40 AM
Last Post: _Aka_
  interpolate to nth control point appropriate_ladder 1 156 02-22-2021, 08:27 AM
Last Post: _Aka_
  Closest Spline & control points loop in both directions nehvaleem 13 949 02-02-2021, 11:45 AM
Last Post: _Aka_
  How to I get positions between control points dazz777 2 771 01-09-2021, 02:18 PM
Last Post: _Aka_

Forum Jump: