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
  Connections Between Opposing Splines lockiidraws 1 493 12-04-2025, 02:14 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 2,743 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,738 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 3,093 02-26-2025, 09:40 AM
Last Post: _Aka_

Forum Jump: