Please help me!!! I'm passing trought the ground!
Please help me... i am passing trought the ground i dont find any good issue
Please help me soon... TVAALEX
Same issue, i cane walk but after couple of seconds i'm passing throught the ground.
In Map Generator -> Terrain Generator script, the "Viewer" is set to the cube viewer by default. You need set it to your controller.
On the off chance anyone stumbles across this problem with the collision meshes not being generated, here's how to fix it: In TerrainChunk.cs, in the UpdateCollisionMesh() function, find this line: float sqrDstFromViewerToEdge = bounds.SqrDistance (viewerPosition);
Change it to: float sqrDstFromViewerToEdge = Mathf.Sqrt (bounds.SqrDistance (viewerPosition));
This makes the distance values much smaller and closer to what they should be for when it assigns collision meshes to chunks the player is walking near. Then at the top of the TerrainChunk class, find the line for const float colliderGenerationDistanceThreshold and adjust it up higher from the value of 5 it is probably at for you up to something like 15. That should get it pretty close and without causing too much lag.
This may not be the correct way to fix it, but it is working fine for me. Hope this helps somebody who gets stuck on this problem.
You just need to change Viewer in Terrain generator to fps controller like @rainqin mentioned.
I have the same issue but it seems to be a problem regarding Unity's way to deal with collisions. When I walk on almost flat ground or very slow, everything works as supposed. But when I walk fast and especially in steep terrain, the FPS-controller falls through the collider mesh.