01-12-2022, 07:39 PM
Howdy, I have two splines with a connection setup making one of the splines a follow-up. I am seeing the OnEndReached event called more than expected. I expected this to only be called twice once for the end of the first spline and once for the end of the second follow-up spline. I am currently seeing it called 3 times, twice when the end of the first spline is reached and a third time for the follow-up spline.
When the end of the first spline is reached the OnEndReached event is called as expected with the correct position and control point values, Immediately afterward the event is called for a second time with the values of the EventArgs set to the follow-up spline and the connected control point.
Any advice on how to resolve or mitigate the issue would be appreciated.
Unity: 2021.2
Curvy: 7.1.6
When the end of the first spline is reached the OnEndReached event is called as expected with the correct position and control point values, Immediately afterward the event is called for a second time with the values of the EventArgs set to the follow-up spline and the connected control point.
Any advice on how to resolve or mitigate the issue would be appreciated.
Unity: 2021.2
Curvy: 7.1.6