Posts: 44
Threads: 16
Joined: Nov 2018
Hello,
So I've got a spline controller with Connections handling set to custom (I manually set it to this before runtime).
How could I change it from custom to follow up spline in code.
I've tried
Code:
mysplineController.ConnectionBehavior
but cant see any completions for follow on spline
Cheers
Posts: 2,113
Threads: 92
Joined: Jun 2017
Hi,
mysplineController.ConnectionBehavior = SplineControllerConnectionBehavior.FollowUpSpline is probably what you are looking for.
More about it in its API doc
https://api.curvyeditor.com/520/namespace_fluffy_underware_1_1_curvy_1_1_controllers.html#afa36b3535b3f55eab06f60dcac91f3bd
Have a nice day
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 44
Threads: 16
Joined: Nov 2018
Yes thats it thanks.
SO I've created my connection like this :
Code:
CurvyConnection conn = CurvyConnection.Create ( spline_push.LastVisibleControlPoint,seg);
Sorry for another question but I want the segment seg to be the follow up spline, how would I do that ?
Posts: 2,113
Threads: 92
Joined: Jun 2017
spline_push.LastVisibleControlPoint.SetFollowUp(seg, <optional parameter of type ConnectionHeadingEnum>)
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 44
Threads: 16
Joined: Nov 2018
Posts: 2,113
Threads: 92
Joined: Jun 2017
you are welcome
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.