01-04-2023, 01:33 PM
(This post was last modified: 01-04-2023, 01:34 PM by josemendez.)
(31-03-2023, 09:19 PM)mikecochang Wrote: Hi there,
I bought Obi-Rope awhile back but I only got to try it now. I followed the documentation and everything is working amazing.
I'm wondering if there's a way to set a maximum length for a rope without tearing. Like a cable that player can grab one end and move it but caps out at a certain distance from the other end. I'd imagine it like how IK works, so the loose end follows the target but doesn't stretch if it passes the max length.
Thanks,
Hi!
This should be the behavior by default: ropes have a specific rest length, once stretched past that length they will apply forces to whatever they're attached to as long as:
- The object they're attached to can receive forces, that is, has a rigidbody component.
- The attachment type is dynamic. See: http://obi.virtualmethodstudio.com/manua...ments.html
Some of the included sample scenes exhibit this behavior: see "Crane" or "GrapplingHook" for example. Let me know if you need further help,
kind regards