- Home /
Unity 101: Falling through floors
Hi All,
My apologies for asking what i guess is a basic question. I'm afraid i've only been using Unity a few days and although i understand the basics, it appears for this query i can't find a solution.
I have imported a FBX file from 3ds MAX of the Barcelona pavilion. I have then added a First Person Controller to the scene. However, when i go in to game mode i simply fall through the floor. If i add a ridgedbody to the building i bounce off the floor and up in to the sky.
Any help would be appreciated.
Regards
James
Answer by MojopinStudios · Feb 05, 2013 at 02:35 PM
When you are about to drag the FBX into your scene, just select the FBX and there should be an option in Import Settings for Generate Colliders. Ensure this is checked before dragging the mesh to the scene and your FPS Controller should sit correctly on it.
You beauty!!! $$anonymous$$new i would be missing something simple.
Thank you so much.
Answer by AndrewGrayGames · Feb 05, 2013 at 02:52 PM
In addition to generating the colliders for an imported mesh (a really good, simple option), you can also go back later and manually assign a Mesh Collider by going to Components > Physics > Mesh Collider on the associated GameObject or Prefab. @MojopinStudios solution is easier, and recommended though; the Component approach is probably better-suited for other situations.
Your answer
Follow this Question
Related Questions
problem with character 1 Answer
Character falling through terrain 1 Answer
Why is my player falling through the terrain? 1 Answer
Rotation problem. 2 Answers