Hello people. I’m very new into Unity and I’m starting my first terrain project as a test.
I am reading thought this tutorial , and now I’m on the “first person controller prefab” part.
When I drag the FPC into my scene and press play to try to walk around, the FPC simply goes through the terrain and I can not walk with the controller. I’m sure this was asked MANY times because I’ve tried to found help online and have seen many forum threads about this but I have no simple answer for this problem. I know it’s something to do with “collision”. But I can not for the life of me find the answer to fix this problem.
Make sure the colliders aren’t overlapping initially. If they are, they won’t collide. Also make sure the game has unreasonably high gravity and your computer isn’t running at an unreasonably slow frame rate, as the collision may happen but not be registered.
There’s your problem right there. Dragging within the editor is not the same as in-game control. The editor doesn’t register colliders. Press play to test the game out. The built in first person controller uses a character controller, which has a rigidbody and collider already. If you are making your own character controller, make sure it has a rigidbody and collider by going to the “Component” drop down, then “Pshysics” drop down, and then “rigidbody” and “Collider.”
In your attached image, is that one massive cube collider around the whole terrain? If so, that’d be your problem. Your terrain collider should be a mesh collider, not a box.
As a quick test, move your player character right above that big green cube and press play. If you can walk around on top of it, the box collider is your problem.