I’m having a bit of trouble with imported terrain data - it first person controller falls straight down through it, even when I make sure that it was placed right above the model.
When I first imported the model it looked transparent with orange outlines of the tiles the terrain was broken into, and after adding a solid white material to it, the character still falls through. I added a video to show what happens:
I’m experienced with Unity, and any pointers in the right direction would help tremendously! I’m guessing it might have something to do with an object type.
A mesh collider is just one of the components that is in normal Unity (not an add on in standard assets). Simply click on Add Component and then I believe it’s Physics → mesh collider. It’s been a long time since I used the fpscontroller I believe it was actually a capsule collider on it.
But in general the only thing that is required is that there is some collider on both the character and the ground and that they don’t start overlapping (usually best to give a small buffer). If you weren’t using the character controller you’d probably also want a rigidbody on it but with a character controller it isn’t necessary.
I added both a mesh and a terrain collider to the ground, but my user still feel straight through my terrain. Is there anything else I could be doing wrong?
Sorry for the slow response - I ended up on a different project for a while.
The main concern I have is that I’m not sure which mesh to apply the Mesh Filter to - I have a bunch of mini-meshes it looks like. I attached a screenshot of my dilemma.
In the original video, the player has a “CharacterController” so a rigidbody is not required on the player.
As per the new png image, I would think that a CharacterController would not fall through that gameobject, Unless there is an error in the console about "Cannot use non-convex collider … " error, OR the player’s layer and ground layers are not set to have Physics interaction in Physics Settings (doubt that).
I was having a similar problem with an imported terrain.(Glowing Forest). I added a mesh collider and changed cooking options to everything (making sure I had a rigid body on my object that I didn’t want to fall through). Then I was able to add force or apply physics changes (I was testing a sphere with rigid body add force to move it (like the roll a ball tutorial).