Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Destroying GameObjects immediately is not permitted during physics trigger/contact
#3
(17-09-2024, 01:30 PM)josemendez Wrote: Hi,

Where are you calling AttachRope() from?

kind regards,
Generally from many places, I switch the state of the players and at that moment I just disable the rope object(not solver) and then enable and call AttachRope again, so that the new rope takes into account the changed position of the players in space and a new rope of a new length is generated.
The death event can be triggered by a collision with a dangerous object or trigger, it switches the player's state to death and does the above with the rope
actually everything works fine in general, but it's the regular warning that bothers me, and if I change the method to Destroy() instead of DestroyImmediately(), the burst starts complaining that it loses references to objects while executing jobs.
Reply


Messages In This Thread
RE: Destroying GameObjects immediately is not permitted during physics trigger/contact - by Alexander34 - 17-09-2024, 01:37 PM