How to stop sticking to walls and corners

  1. Copy and paste your PlayerModel's Collider
  2. Make the first collider (original) its radius a little bit smaller
  3. And the second collider a little bit smaller in height

Example:

 

  1. Create a new Physic Material
  2. And put every intiger value on 0
  3. And the rest on mulitply

  1. Add the just created Physic Material to the second collider with the smallest height value

We use our original collider to ensure it touches the floor and has no effect from the physic material. However, when we walk into a wall or corner, the newly created collider wich is wider will slip off due to the different physic material.

recommended