Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Resetting the Obi.Collider
#1
Hello!

My current fluid setup uses a mesh collider with the obi collider. When the mesh changes the obi.collider does not. The workaround i found for this is to delete the obi.collider and then re-add it, all in the same frame. This updates the obi.collider with the new mesh and everything works well.

A problem I encountered with this is that the destroyed obi.collider still maintains a reference to an object somewhere and therefore doesn't get fully destroyed by the Garbage collector and slowly adds to the memory until it crashes.

I've tried removing the 'Source Collider' in the Obi.Collider and re-adding it, but this just seems to disable the obi.collider entirely.

Is there a way that i can 'reset' the Obi.Collider once changes in the Mesh collider have been made?

Thank you!
Reply


Messages In This Thread
Resetting the Obi.Collider - by Jaydena - 17-08-2018, 04:57 AM
RE: Resetting the Obi.Collider - by josemendez - 17-08-2018, 08:52 AM
RE: Resetting the Obi.Collider - by Jaydena - 20-08-2018, 04:11 AM
RE: Resetting the Obi.Collider - by Jaydena - 21-08-2018, 01:17 AM