Obi Official Forum
Help Saving Rope State during play? - 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 Saving Rope State during play? (/thread-652.html)



Saving Rope State during play? - Bill Sansky - 16-08-2018

Hi!

Is it possible to save the state of the ropes during play so that they can be initialized in a specific configuration and position?

My use case is I want two rope to be tangled in a specific way, which I can easily achieve during play, but not easily using curves in edit mode: is there any way I could save the play state of the rope?

Thanks!


RE: Saving Rope State during play? - josemendez - 17-08-2018

(16-08-2018, 09:44 PM)Bill Sansky Wrote: Hi!

Is it possible to save the state of the ropes during play so that they can be initialized in a specific configuration and position?

My use case is I want two rope to be tangled in a specific way, which I can easily achieve during play, but not easily using curves in edit mode: is there any way I could save the play state of the rope?

Thanks!

You can advance the simulation in-editor using the particle editor. When the simulation reaches the state you want to keep as initial state, press the "Set rest state" button in the rope inspector.

cheers,


RE: Saving Rope State during play? - Bill Sansky - 17-08-2018

(17-08-2018, 08:49 AM)josemendez Wrote: You can advance the simulation in-editor using the particle editor. When the simulation reaches the state you want to keep as initial state, press the "Set rest state" button in the rope inspector.

cheers,

Thanks! 

Would "Set rest state" also work during play, so that I can save the rope as a prefab during play and have it saved?


RE: Saving Rope State during play? - Bill Sansky - 17-08-2018

So I tried to simulate the rope. The problem is that it doesn't work well, at least in my configuration (I'll gladly know what I may be doing wrong):
  • The radius of the particles is not taken into account
  • The handles are not taken into account
  • The colliders are not taken into account
  • Of course, it is impossible to tangle the ropes in a configuration I want in that case since I cannot move the handles the way I want
Additionally, what about the scenario with two ropes? if I want them in a tangled state before I hit play, this simulation doesn't take into account a few ropes, or maybe I'm doing it wrong? How to solve this?


RE: Saving Rope State during play? - Brazilll - 28-02-2020

(17-08-2018, 09:44 PM)Bill Sansky Wrote: So I tried to simulate the rope. The problem is that it doesn't work well, at least in my configuration (I'll gladly know what I may be doing wrong):
  • The radius of the particles is not taken into account
  • The handles are not taken into account
  • The colliders are not taken into account
  • Of course, it is impossible to tangle the ropes in a configuration I want in that case since I cannot move the handles the way I want
Additionally, what about the scenario with two ropes? if I want them in a tangled state before I hit play, this simulation doesn't take into account a few ropes, or maybe I'm doing it wrong? How to solve this?

Same problem here, and as I can see this problem was never solved or answered.
I have Obi Rope setup with handles, and I can't re-create the same setup in simulation mode as it ignores them. Is there a way to save ropes state in Play Mode?