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


Messages In This Thread
How to get list of control points - by dazz777 - 05-22-2019, 12:34 PM
RE: How to get list of control points - by _Aka_ - 05-22-2019, 02:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Control Point Interpolation Overrides. rickgplus 1 171 12-11-2025, 08:52 AM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 2,592 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,348 12-10-2024, 10:14 PM
Last Post: _Aka_
  Scene 51: Dynamic track between two points wallflower6 3 1,982 08-19-2024, 08:18 AM
Last Post: _Aka_

Forum Jump: