Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection inside of a spline. SC can't follow.
#1
It seems if you have a connection inside of a spline then the SC can't follow against the spline direction. (red arrow)
The blue line represent the possible moving direction of the SplineController.


[Image: b03.jpg]

The only way to build a working connection is to use Split on Spline 3 at the red arrow.
But Split deletes the last ControlPoint of Spline3 unfortunately.

[Image: b03a.jpg]

So I recommended to have a Split function that doesn't delete the ControlPoint of the un-parted spline.
It's a lot of word to recombine the un-parted spline and fix the connection because the Connection position is always lost too.

But anyway if these 3 single splines are connected, the connection itself on snyc dir/len/rot gets corrupted unfortunately.
The reason is snyc length. If its activated it seems the function doesn't take care about math.sign of the handles.


[Image: b03b.jpg]
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply
#2
SplineControllers don't follow connections, event handlers do by setting the controller to a new spline. So I need at least the code of the event handler you're using. Connection settings would be of help as well.
Reply
#3
Lightbulb 
(01-15-2016, 07:53 AM)Jake Wrote: SplineControllers don't follow connections, event handlers do by setting the controller to a new spline. So I need at least the code of the event handler you're using. Connection settings would be of help as well.

The Connection settings prevent to set the FollowUp (or Heading however) into the red arrow direction. See image below.
Your new Event Handler (UseFollowUp) you provided works in this case. But crash again in other situations unfortunately.

Anyway..
This situations while curvy produce bugs (mostly while editing Connections) and cause unity to fail are complex. Explaining the complex stuff seems  waste of time currently,
because it there is none who's willing or interesting to understand this complex fails. Laying a simple spline from A to B works. Working with Connections produce too much fails to get in basic workflow. I would recommended to spend more time into the editing Connection features to keep them running better.

[Image: 04.jpg]
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply
#4
Yes, thery're complex, and trying to reproduce a problem from a set of images is next to impossible. A simple repro scene (saved scene file is sufficient if there's no custom code in it) sometimes does more than thousand words.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Syncing UI Spline and Regular 3D Spline arrnav96 8 81 03-21-2019, 12:13 PM
Last Post: _Aka_
  Adding multiple splines to one connection dazz777 3 98 03-07-2019, 10:44 AM
Last Post: _Aka_
  Creating connection from code kardoser 5 512 02-27-2019, 11:29 AM
Last Post: _Aka_
  How do I find closest spline ? dazz777 4 173 02-20-2019, 09:47 AM
Last Post: dazz777

Forum Jump: