Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope saving and restore
#4
(20-02-2024, 09:11 AM)Apoll0 Wrote: May be I should wait for blueprint loading before setting particles positions? BecauseĀ I RestoreRopeFromJSONObject right after instantiating the prefab with ropes (template)

Yes, you should wait for the rope to be loaded into the solver. You can subscribe to the rope's OnBlueprintLoaded event to get notified when this happens. Not waiting will likely lead to out of bounds access exception, since rope.solverIndices won't be initialized yet.
Reply


Messages In This Thread
Rope saving and restore - by Apoll0 - 20-02-2024, 08:27 AM
RE: Rope saving and restore - by josemendez - 20-02-2024, 08:53 AM
RE: Rope saving and restore - by Apoll0 - 20-02-2024, 09:11 AM
RE: Rope saving and restore - by josemendez - 20-02-2024, 09:23 AM