- Home /
Why my capsule collider sometimes stucks in other colliders?
I'm creating a third person game, and sometimes I face a strange bug that I cannot figure out. Indeed the player may remain stuck in static scene objects, and cannot escape until an angle large enough in relation to the object is reached, as you can see in the small video below:
The player is composed by a rigid body and a capsule collider, and the settings are shown below:
The object shown in the above video, which stuck the player, is static and contains a sphere collider but no rigid body.
I already tried to change the collision detection parameter in my player rigid body to Continuous or Dynamically Continuous, and to set a physic material with the frictions set to 0 in the colliders which stuck the player, but although this improved the situation, the player still may sometimes be stuck in static objects.
I don't understand why this problem is happening and I don't know what else to do to fix it. So if someone may share info about how to fix that I would be grateful.
Your answer
Follow this Question
Related Questions
How to detect collision with a rigidbody? 3 Answers
OnTriggerEnter not working, tried everything! :( (C#) 3 Answers
Using a static class & pass in gameObject or just add same script to multiple objects 1 Answer
Mismatched collisions between imported .fbx models and other generic objects 0 Answers
Rigidbody Disable Velocity/Movement? 1 Answer