Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance function
#1
Question 
Im instantiating gameobjs with curvycontrollers to travel along a spline continuously; new objs spawn every 10 seconds or so and existing ones are destroyed once they reach the end of the spline for +3 seconds. When i run this game for 30min plus+, I sometimes get an IndexOutOfRangeException on line 1397 which is function FluffyUnderware.Curvy.CurvySplineSegment.LocalFToDistance in file CurvySplineSegment.cs. Not all gameobjs travelling along the same spline get this error, only maybe 1% do get this error. However, this error doesnt seem to affect anything, at least in my short term testing. The obj still travels fine along the spline and my colliders on it still work. 

I am not sure how ignoring this error in the long run will affect my program so ideally would like to get this error fixed. Thanks in advance! 

please let me know if i need to supply any more information.

EDIT: when the error occurs, the gameobj actually stops moving on the spline.
Reply


Messages In This Thread
IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance function - by mchangxe - 03-10-2021, 06:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Disabling a CurvySplineSegment results in NullRefException Lupos 1 6 10-02-2023, 09:55 AM
Last Post: _Aka_
  Custom CurvySplineSegment prefabs Lupos 1 10 10-02-2023, 09:36 AM
Last Post: _Aka_
  Does Curvy has gameobjects pooling system function? Chanon 7 13 09-07-2023, 12:43 PM
Last Post: _Aka_
  IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance billowe 2 753 09-06-2022, 06:09 AM
Last Post: sambutle

Forum Jump: