Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Saving/Loading game with Obi Ropes on it
#2
(02-02-2023, 02:12 AM)JooKitOoz Wrote: Anyone knows how to save/load Obi Ropes?
I'm making a game where I need to put cables on some objects that are interactable by the player, and then save it's position when the player dies. I'm using Save is Easy ( https://assetstore.unity.com/packages/to...easy-57432 ) to manage the game save/load, but for the cables made with Obi Rope they come back on their original position and shape (detached form the object previously moved) but no longer work or react to physics.

K

Hi there!

Ropes are just regular GameObjects, they are saved/loaded the same way: write/read transform values and any public component values. The only caveat is that they must have a ObiSolver up there hierarchy, and that the solver must be included in a ObiUpdater (usually, a ObiFixedUpdater) in order to be updated when appropriate.

I'd suggest to make sure the setup after loading the rope follows this.

kind regards,
Reply


Messages In This Thread
RE: Saving/Loading game with Obi Ropes on it - by josemendez - 02-02-2023, 08:05 AM