- Home /
Player collides with open doorway?
Hi I need a little help. I created a 3D model of a house with an open doorway, so the player can go inside and take a look around. But when I apply a mesh collider to the house, my player collides with the open doorway. So I can't go inside. How can I fix this?
Here are some screenshots:
Are you sure your character controller isn't colliding with something else? Is convex collisions enabled on your house? When you run the game and go back into scene view and select the house, does it have the correct collision mesh?
Answer by Eefke126 · Feb 21, 2013 at 09:48 PM
I did not enable convex collisions, and the collider was applied correctly to the right mesh. But I managed to fix the problem. When the colliders weren't working correctly I scaled down the character controller so it would fit through the doorway. For some reason the character collider did not scale down, so it still collided with objects it should not have collided with. I fixed the problem by, instead of scaling down the character collider, I scaled up the houses and now everything works as it should have :) Still don't understand why the character collider did not scale down as well though.
Can you accept your answer, since this question is closed? :)
Your answer
Follow this Question
Related Questions
Colliders on this spider 1 Answer
Multiple Colliders Issue 3 Answers
How to correct add collider to every child of gameobject? 1 Answer
Have script detect which collider 2 Answers
Building a Level 1 Answer