- Home /
Rigidbody below terrain getting dragged
If a rigidbody is below a terrain it is getting dragged up on the terrain
I have 2 terrains, one over another to make a cave like shape. If I put a rigidbody on terrain below it is getting dragged onto the terrain above. So i cant even put a single rigidbody inside that cave.
I tried with mesh collider on terrain obove instead of using terrain collider. But terrain does not have an actual mesh, so it didnt work.
Is there a solution to overcome this?
Answer by PvTGreg · Feb 26, 2015 at 09:59 AM
Hi you could try this and then put the mesh collider onto it
When i exported my terrain to obj, it created 3 different meshes in it..... i didnt actually help
however, i already have found a better solution for my particular scenario.... i dont think that's going to anyone else, but here it goes
my scenario is: people can roam around on top of the cave but when they enter cave they wont see a ceiling....they would see just sky.......so i was disabling the terrain when entering cave and reenabling on exit.... but in the smll gap in between terrain and disable-trigger my rigidbody player was being pulled up on roof.
so i put a trigger on each cave entrance, while in those trigger i am disabling collider for that terrain....and inside the cave the terrain itself is disabled