Sorry for the newb question: Why is my first person capsule falling through the ground mesh?

I am using the Starter Assets - First Person Character Controller

I have a ground mesh in the scene.
I bring the first person character in either with the manual instructions or using the nested prefab.

In either case, my player falls through the ground mesh as soon as I hit “play”.

“Y” position is always 0 or more, so the capsule is certainly above ground.

I am sure the answer here is simple, but how do I keep my character on the ground?

Because you don’t have collider on both objects Capsule & Ground && RigidBody on one of them

Collisions and Triggers (OnTriggerEnter not working!) - Code Monkey (unitycodemonkey.com)

As long as you’re using the “PlayerCapsule” prefab and the ground has a collider on it, that should all be good.

Perhaps there’s something wrong with your collision layers? I noticed that the first person character controller starter asset puts the player on layer 8 (which isn’t named by default, so I just named it “8”).

8931303--1224375--upload_2023-4-6_9-21-33.png

If that dropdown is empty, then you don’t have a name assigned for layer 8, and this shouldn’t be the problem, since every layer defaults to colliding with every other layer.

If it isn’t empty, check the Physics section of the project settings. If that layer doesn’t collide with Default (or whatever layer the ground is on, which you’ll want to check!), you’ll fall through the floor

8931303--1224384--upload_2023-4-6_9-22-58.png

This one always works for me:

It is a super-basic starter prototype FPS based on Character Controller (BasicFPCC):

That one has run, walk, jump, slide, crouch… it’s crazy-nutty!!