- Home /
2D rigidbody gets randomly stuck on flat surface
Hello, Unity community,
I'm creating some kind of Terraria-like clone game. Everything is working fine, except for the fact, that when player moves on flat surface built out of blocks (which are Rigidbodies2D and BoxColliders2D) he can get randomly stuck on it. I've tried creating physics material 2D with friction 0, but these bugs still occur. Is there any other solution for this problem?
EDIT: Moving is done by setting player's rigidbody velocity.x and y.
Thanks for your help. :)
Have you tried using player colliders with rounded edges? There's a reason capsule colliders are popular for prototyping.
Your answer
Follow this Question
Related Questions
Disable 2D Phsysics 2 Answers
How to avoid gaps between 2D physics objects? 2 Answers
Problem with CharacterController collision detection 1 Answer
Problem with itween collision detection. 4 Answers