Help Added particles through cursor ChangeLength seem to freeze in place. - 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 Added particles through cursor ChangeLength seem to freeze in place. (/thread-3252.html) |
Added particles through cursor ChangeLength seem to freeze in place. - ZhadoTom - 29-12-2021 Sorry if this has been answered but I couldn't find a thread with a similar issue. I'm trying to dynamically increase a ropes particles as it's stretched past a certain threshold. The rope has an attachment either end and as I pull them apart, I want new particles added, but when the new particles are added they appear to just stick in place and have no physics to them. I test this by adding length over time with a simple line of code: cursor.ChangeLength((rope.restLength) + 1 * Time.deltaTime); Yet I was getting the same results as shown in the video below. RE: Added particles through cursor ChangeLength seem to freeze in place. - josemendez - 29-12-2021 (29-12-2021, 12:18 PM)ZhadoTom Wrote: Sorry if this has been answered but I couldn't find a thread with a similar issue. Hi! Just make sure the source of the cursor is not set to a part of the rope that’s fixed. Cursors work by copying particles from a source position along the rope, and “pasting” them at the cursor location. Seems like your cursor’s source is a fixed or attached particle. See “source mu” in the manual page: http://obi.virtualmethodstudio.com/manual/6.3/ropecursor.html RE: Added particles through cursor ChangeLength seem to freeze in place. - ZhadoTom - 29-12-2021 (29-12-2021, 04:04 PM)josemendez Wrote: Hi! Thanks! I had to set the attachments to dynamic and that solved it. RE: Added particles through cursor ChangeLength seem to freeze in place. - josemendez - 30-12-2021 (29-12-2021, 05:04 PM)ZhadoTom Wrote: Thanks! I had to set the attachments to dynamic and that solved it. That’s also a solution, but you might still want the attachment to be static (depending on the behavior you’re after). If that’s the case, changing the cursor source is a better approach. Cheers! |