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
  Connections Between Opposing Splines lockiidraws 1 383 12-04-2025, 02:14 PM
Last Post: _Aka_
  Procedural Connections Janooba 3 2,050 10-23-2024, 02:53 PM
Last Post: _Aka_
  Can't set CG Path Controller j95677 4 2,870 10-04-2024, 06:55 PM
Last Post: j95677
  How to use CG Volume Controller j95677 5 3,172 07-17-2024, 07:15 PM
Last Post: j95677

Forum Jump: