Hi People!
I have a big issue for me, with my project. I have imported FBX from Sketchup to Unity 3D. After that, I have also done a lot of stuff, but mainly I have generated colliders in the whole model.
I would like to get in this building, but it seems that generated colliders are blocking my entrance. I have also done the opening of doors and so on. Just still stopping in front of the building. Is there any solution, to make just this entrance part accessible and possible to go through? It would be very big problem for my Project, if I would have change that model totally.
Thanks a lot in advance!!!
Are you generating a mesh collider for the whole building? Or are you using some number of box colliders?
If the build is completely encased on colliders, and the player also has a collider on them, then obviously they’re going to collide with the building, and they won’t be able to get in. You can completely disable collision between the player and the building’s collider by changing their Layer, but then the player would be able to walk through any of the walls. Probably not what you want.
What you almost certainly need is for the building to be made of multiple colliders. At the very least, the walls and windows should be at least one collider, but the doors should be separate colliders so that you can open/close the doors.
But please explain what kind of collider(s) you’re using for the building. Ideally show a screenshot with gizmos turned on so we can see the collider(s).