Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Teleport() causing ArgumentOutOfRangeException error
#2
Hi HakJak,

that code should read:

Code:
sc.batches[i].orientations[batchOffset + j] = rotOffset * sc.batches[i].orientations[batchOffset + j];


instead of


Code:
sc.batches[j].orientations[batchOffset + i] = rotOffset * sc.batches[i].orientations[batchOffset + j];


Notice the i and j variables in the left side of the = are swapped.

We should publish an update to address this one since Teleport() is a common operation.
Reply


Messages In This Thread
RE: Teleport() causing ArgumentOutOfRangeException error - by josemendez - 20-03-2024, 07:00 AM