Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  ObiRopeCursor.ChangeLength causes IndexOutOfRangeExceptions
#2
I discovered some new information which may help fix this bug. I think it is related to the cursor not updating the particle index it is pointing to when the length of the rope is changed. I did a test where I created a rope with a cursor, and set the cursorMu to .5

Then I slowly reduced the length of the rope with cursor.ChangeLength(). Reliably, the error occurs after the length starts getting shorter than 1/2 of the original rope length. In other words, the cursor is pointing off the end of the rope!

(Ignore the unrelated NullRefException at the top)
   

I was able to workaround the issue for now by setting the cursorMu every time just before calling ChangeLength().
Reply


Messages In This Thread
RE: ObiRopeCursor.ChangeLength causes IndexOutOfRangeExceptions - by protomenace - 01-07-2020, 04:02 AM