Help RuntimeRopeGenerator basic questions - 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 RuntimeRopeGenerator basic questions (/thread-4443.html) |
RuntimeRopeGenerator basic questions - ayoci - 04-02-2025 Hi! I had to upgrade Obi Rope from version 3 to 7 because I bought Obi SoftBody as well, and unfortunately, they don't work on separate versions. I’m not quite familiar with this version yet. How can I generate a ropes that always has the same length? Currently, it generates the rope based on the distance between the Start and End points, but I don’t want that. I tried using "controlPoints.Add(Vector3.down * ropeLength);" like in the old version but it's does not work anymore. Code: public Transform startp; If i switch startp.position, endp.position to Vector3.zero, Vector3.one Then nothing happens when i create the rope. This is the script I’m currently using, and it works well, but compared to the ExtendableGrapplingHook.cs, it seems quite incomplete. Could it cause any issues that I’m not using a Coroutine or that "var batch = new ObiPinConstraintsBatch();" section? Or could it be that the missing parts are exactly why my rope isn't generating properly when I use Vector3.zero, Vector3.one instead of my Transforms? I know my questions are very basic but i didn't find a normal "Runtime Rope Generator" example. Thank you in advance. |