![]() |
Sliding along a rope - 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: Sliding along a rope (/thread-4528.html) |
Sliding along a rope - vrt0r - 01-08-2025 Hi everyone, I'm currently experimenting with Obi Rope and ran into a few issues I haven't been able to resolve yet. I'm hoping to get some helpful tips here. 1. Sliding a Rigidbody Along the Rope I'm trying to slide a Rigidbody along a rope using a pinhole attachment. Previously, I moved objects along a simple spline, but I really like how sliding along a rope looks and feels in comparison. To reduce resistance, I’ve set the friction to zero on the Obi collision materials for both the rope and the Rigidbody. I also set the pinhole attachment’s friction to 0 and disabled drag and lift. However, the Rigidbody still tends to get stuck around the rope’s control points. The rope is shaped using control points that are attached to empty GameObjects (so no colliders are present at those points). Despite that, the Rigidbody gets noticeably stuck at those anchored positions. Any idea what could be causing this sticking behavior? 2. Shaping Ropes (e.g., Spirals) I also need to create specific rope shapes - like spirals, for example - but I find it difficult to set these up in the editor manually. I tried creating a blueprint with multiple control points and using particle attachments to force the rope into a spiral shape at runtime via a script. However, this requires a large number of attachments to get an acceptable shape, and even then the result isn't very precise. The rope still sags too much at the attachment points. I’ve increased the simulation substeps to 12 and raised the bending and distance constraint iterations to 4, but the rope still doesn't hold its shape well enough. Would using a rod instead of a rope yield better results in this case? Also: Is there a more efficient or cleaner method to align control points to GameObject positions or generate custom shapes programmatically? Any best practices you can recommend for this kind of setup? Thanks in advance for any insights! |