Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Trying to make obi fluids work with terrain holes
#3
(13-02-2026, 09:07 AM)josemendez Wrote: Hi Abhishek,

Terrain holes are fully supported, they should work. Could you give a few more details about the problem? Specifically, you mentioned:

I assume this digging/hole making is happening at runtime? If so, you'll need to manually update Obi's representation of the terrain (it isn't automatically updated every frame, just once when starting the simulation). This is done by calling:

Code:
((ObiTerrainShapeTracker)yourObiCollider.tracker).UpdateHeightData();

kind regards,
Yes it does change terrain data in runtime. Just tested again in another empty scene with just a terrain which has a hole and an emitter. It does work!! Doesnt seem to be doing it in this specific scene. I'll dig deeper (pun intended). Probably something to do with digger in that case and not obi. 

I'll test the code you gave me. 

Thank you soo much!
Reply


Messages In This Thread
RE: Trying to make obi fluids work with terrain holes - by abhijathandsi - 13-02-2026, 10:48 AM