Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections/Controller issue
#3
I updated the image, it should be easier to understand now.

But I think I found the issue, it's here :
Code:
if (e.Spline.IsClosed || !e.ControlPoint.IsLastControlPoint) // Can continue on the same spline
   {        
        valideControlPoints.Add(e.ControlPoint); // Add current spline      
   }

That should be like this :
Code:
if (e.Spline.IsClosed || (e.ControlPoint.IsLastControlPoint && Controller.Direction == -1) || (e.ControlPoint.IsFirstControlPoint && Controller.Direction == 1)) // Can continue on the same spline
        {
            valideControlPoints.Add(e.ControlPoint); // Add current spline      
        }

It appears that my code added the current spline even if it was not valide and that led to the bug. 
If I undestand correctly, since my code allowed the current spline to be continued, the contoller just got back to the start of the spline and given that the start point had connection, the code started again and choose the main spline, so I thought the controller teleported.
Reply


Messages In This Thread
Connections/Controller issue - by lllApOlll - 03-05-2018, 04:03 PM
RE: Connections/Controller issue - by _Aka_ - 03-05-2018, 04:41 PM
RE: Connections/Controller issue - by lllApOlll - 03-05-2018, 05:19 PM
RE: Connections/Controller issue - by _Aka_ - 03-05-2018, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 204 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 164 08-22-2026, 11:24 PM
Last Post: _Aka_
  Connections Between Opposing Splines lockiidraws 1 919 12-04-2025, 02:14 PM
Last Post: _Aka_
  Procedural Connections Janooba 3 2,789 10-23-2024, 02:53 PM
Last Post: _Aka_

Forum Jump: