Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to modify Example 12 to work bi-directionally and more than 2 connected splines
#3
Thumbs Up 
Hi aka,

thanks for the response and I have had a look and I am not really sure how to approach this but I will have a good go.  So for a simple example, if I was going to create a new custom connection type that selected the next random control point from the connection list, I could just copy the block of code in your controller script HandleRandomConnectionBehavior() and place that into a new private function in a new ConnectedControlPointsSelector class script? 


I notice that when I select "Custom" it also removes Allow direction change, Reject current spline, Reject divergent spline and Max Angle. Would I need to copy the code for these into the new script or are they still available to be used outside of the new script?

I am sorry to ask these additional questions but once I have a templated idea of how you would approach this then I can maybe work through what the custom connection logic will need to be to satisfy the requirement. My need is pretty straight forward, there is always a straight on spline or a junction spline to take depending on the state of E12_MD Junction Controller so I guess the list of connections and their position in the list will determine the selected spline?  e.g 0 = existing spline (which will never be selected) , 1 = straight on spline and 2 = junction spline?

Anyway, thank you for the pointers.

D
Reply


Messages In This Thread
RE: How to modify Example 12 to work bi-directionally and more than 2 connected splines - by Mambosa - 11-29-2022, 06:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information New free asset: Converter For Unity Splines _Aka_ 5 18 04-25-2024, 11:11 AM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_

Forum Jump: