![]() |
Help ChangeLength in Version 7 - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help ChangeLength in Version 7 (/thread-4314.html) |
ChangeLength in Version 7 - vrtraining - 05-08-2024 It says in new documentation Quote:ObiCursor.ChangeLength() no longer takes an absolute length as parameter, but a change in length. So my app is using ChangeLength a lot and its designed in old way where it takes the absolute value. Is there any method that still uses the old way? What if we really want to set the length to a specific absolute value instead of change in length. For example I want rope length to be 5, now with this new method I have to calculate current length and provide an offset to bring it to 5 or I can still do it with any other method? RE: ChangeLength in Version 7 - josemendez - 05-08-2024 (05-08-2024, 04:50 AM)vrtraining Wrote: So my app is using ChangeLength a lot and its designed in old way where it takes the absolute value. Is there any method that still uses the old way? What if we really want to set the length to a specific absolute value instead of change in length. Hi! You can just pass the difference between your desired and current length. kind regards |