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

I've looked in the API and found this https://api.curvyeditor.com/520/class_fl...8a9150ebea
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.
Code:
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.

Regards


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 
Code:
foreach (CurvySplineSegment con_Point in connection.OtherControlPoints(currentControlPoint))
{
Debug.Log (con_Point.gameObject.name);



}
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Closed splines and duplicate points jh092 3 6 07-24-2022, 01:54 PM
Last Post: _Aka_
  How to stop spline refreshing when a control point is deleted or removed? Beaver_Boy 4 8 07-23-2022, 11:24 AM
Last Post: _Aka_
  Problems compiling after pulling down project from source control obscurelyme 2 12 02-13-2022, 03:47 PM
Last Post: Marco Schultz
  Allow to control Global Illumination settings in CreateMesh node of PathGenerator RobinB 2 233 11-02-2021, 08:50 AM
Last Post: RobinB

Forum Jump: