Teleport Funciton Exception - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html) +--- Thread: Teleport Funciton Exception (/thread-3742.html) |
Teleport Funciton Exception - patriot4947 - 23-01-2023 Hi, I am using obi soft body Teleport function but I am getting below exception. How can I solve that problem. [attachment=1633] [attachment=1635] RE: Teleport Funciton Exception - josemendez - 23-01-2023 (23-01-2023, 03:51 PM)patriot4947 Wrote: Hi, Hi, Which version of Obi are you using? line 206 in 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 in the code you shared. kind regards, RE: Teleport Funciton Exception - patriot4947 - 23-01-2023 (23-01-2023, 03:58 PM)josemendez Wrote: Hi, Thanks a lot for your quick answer. |