Survival Shooter player movement help

Hi,

Sorry if this is a simple solution but I’ve only spent a few hours in Unity so far so I can’t find the answer.

I’ve just completed the Survival Shooter player character lesson and come to test and my avatar isn’t moving. Its turning and animating as I would expect but not moving around the floor. If I unfreeze its rigidbody y position I can move him, albeit above the floor, but not with it frozen. He just walks in place.

I’ve copied the player movement script from the lesson and overwrote my copy and I get the same result so I’m baffled as to what it could be.

Any ideas on what I’ve missed?

Thanks!

I’ve found it. My capsule collider on the player had the centre y value of 2 instead of 6. Can some explain how this would have prevented the player from moving?

It looks like because it has height of 1.2 it was passing through the floor rigidbody. Would this hold it in place?