Box Collider and Character Controller Problem - 2D
Hello, i'm trying to create a little 2D game and I have some problem with Box Collider and Character Controller's collider syze who don't match. Does you know where is the problem ?
(I don't use 2DBoxCollider and 2DCharacterController because it doen't work, I use the classic one)
Thanks !
Answer by Invertex · May 17, 2017 at 11:49 AM
2DBoxCollider and 2DCharacterController do work. Perhaps you were not aware that 2D Colliders and 3D colliders do not work together, and so assumed the 2D ones were broken when not interacting with regular colliders? If you go 2D, you must use 2D colliders and 2D rigidbody.
As for the problem here, look at the properties on your CharacterController. It is likely the "Skin Width" value causing this. Set it to 0.
Your answer
Follow this Question
Related Questions
Pop up where two colliders meet 0 Answers
Need a simple health script 1 Answer
How i prevent 2 obejcts with kinematic checked in both rigidbodies collide? 3 Answers
How to check if gameObject is interact with multiple colliders 1 Answer
player going through walls even though it has colliders and rigidbodies 0 Answers