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
  Rasterized Path Range issue proton 3 15 Yesterday, 09:26 AM
Last Post: proton
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Connections Problem Juton 3 16 03-06-2024, 10:41 AM
Last Post: _Aka_
  Add noise to spline controller movement DekoGames 2 10 02-06-2024, 01:28 PM
Last Post: DekoGames

Forum Jump: