Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  obi rope Collison and twine
#8
(11-07-2023, 10:20 AM)Raymond Wrote: I checked the code of the previous developer and found that he only used dotween to move the rope and PrefabUtility.SaveAsPrefabAssetAndConnect() to save the model as a prefab, I did the same thing, but did not get the expected result, after saving as a prefab, the rope the same as when it was first created.This has bothered me for a long time hoping to find out why,Thanks a lot!

That can't possibly do anything regarding saving the rope's state, as it completely ignores particles - whose positions determine the shape of the rope. Moving the rope will only move its transform, and  PrefabUtility.SaveAsPrefabAssetAndConnect() will only save public (serialized) component fields.

Look for places where the solver's positions array is used throughout your codebase.
Reply


Messages In This Thread
obi rope Collison and twine - by Raymond - 06-07-2023, 03:06 AM
RE: obi rope Collison and twine - by josemendez - 06-07-2023, 07:35 AM
RE: obi rope Collison and twine - by Raymond - 06-07-2023, 07:45 AM
RE: obi rope Collison and twine - by josemendez - 06-07-2023, 08:45 AM
RE: obi rope Collison and twine - by Raymond - 07-07-2023, 03:29 AM
RE: obi rope Collison and twine - by josemendez - 10-07-2023, 01:21 PM
RE: obi rope Collison and twine - by Raymond - 11-07-2023, 10:20 AM
RE: obi rope Collison and twine - by josemendez - 11-07-2023, 10:39 AM
RE: obi rope Collison and twine - by Raymond - 13-07-2023, 03:10 AM