Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Disable rope inside animation event callback
#3
(11-04-2022, 07:59 AM)josemendez Wrote: You can't use Destroy() in editor. That's the reason why DestroyImmediate() is used instead, since the collision world might be destroyed in-editor when you switch simulation backends. Using Destroy() instead will cause all sorts of issues during edit mode, since multiple collision worlds will start to spawn in your scene.

If you intend to remove all actors from a solver during an animation, you might want to call Destroy or DestroyImmediate depending on whether you're in editor or play mode. You can use Application.isPlaying to check for this.
Appreciated! Imma stick with burst anyway, but yeah, I'll add the check just in case.
Reply


Messages In This Thread
RE: Disable rope inside animation event callback - by jacob - 11-04-2022, 08:53 AM