- Home /
Character controller not fitting through door
Not much code to be posted here, because I don't think that's the issue. But I have found out, through painfully long testing, that a character using Unity's built-in Character Controller component doesn't fit through spaces lower than its height + step offset. This is really annoying, especially when trying to go through doors.
I don't have any other colliders attached to the player object that could interfere with the collision detection.
Is there any sort of workaround here? I would like to have a reasonable step height and not a dwarf as the player.
That would indeed solve it, but there must (or should) be a way of solving this differently, since the apparent height of the controller seems to fit through it perfectly.
you need to add the controllers skin width twice to get the total height of the controller.
That's indeed an interesting point, but it sums up to about 0.02, which is negligible in this case.
But thanks anyways