Player Controller
Posted 14 days ago
The rigidbody for the player controller is a bit of a weird shape. It's a box at the bottom and a capsule at the top.
The box is used for the feet. It has high friction. Using a box here instead of a capsule makes it feel like the hl2 player controllers. You don't sink when walking near an edge etc.

The body is wider than the feet, and has no friction. This means that when you graze a wall it doesn't slow you down. This is important when jumping against walls, you don't want the wall to grab you and be unable to jump.