- Home /
The question is answered, right answer was accepted
My character falls through the terrian
Hi Guys
I'm pretty new to Unity3D but loving it, I'm using version 3. I'm making a 3rd party game I have a character made in Studio Max which is placed on my terrain with a character controller and script added. THe character is off the ground and placed at 0,0,0 but it keeps falling through the terrain.
Can someone help please?
I am a noob too, but i would just like to say that I was playing around with unity and i figured out that if your character has both a cube and sphere collider, it will randomly roll back up if you move it around with the inputs. Just saying, you might not have a messed up terrain like the one i'm testing on, but i just wanted to say that.
Activate (Is $$anonymous$$inematic) on the players RigidBody
Answer by Christoff · Nov 30, 2010 at 12:11 PM
If your character falls through the floor.
Check if your character is above the level of the floor, if the character is intersecting with the ground, normally they will drop through and fall.
Check your character has a colider
Check if your landscape:ie the floor your character walks on has a colider
If Your landscape has been imported from a 3D package ie: maya or max etc. Look at the hierarchy and find the model. for example landscape. look at the properties and select generate coliders then go to apply. You may have to delete the landscape from the scene and re-drag it from the hierarchy for any changes to be made.
If your character still falls through the ground it's probably the capsule colider on the character, try inputting a standard FPS controller or third person controller and see what happens with them. If they do function correctly then it is something to do with your character try re-importing the file and add the appropriate physics to see if it works.
Tip: Dont use a mesh collider very high usage of the cpu. Use a casual colider and ensure the character is inside of the green area.
Answer by Adam Rademacher · Nov 11, 2010 at 11:12 PM
Check the bottom of the collider. If the bottom clips through the terrain even a little you'll fall through all the way. An easy way to test this is by pulling it way above the terrain and letting it fall to see if it still falls through the terrain. The other thing you should check if this doesn't work is that the 'terrain collider' component on your terrain is not set to a trigger.
Answer by Rukey4 · Nov 30, 2010 at 11:40 AM
You could possibly try putting a collider on your terrain by going selecting your terrain, Choosing "Component > Physics > Mesh Collider" and make sure the terrain is not set to a trigger or you will definately fall through.
When I turn off "Trigger" on the terrain, I don't fall through, I get warped outside of the entire map.
Answer by Unamine · Mar 31, 2011 at 10:26 AM
Verify that Is Trigger is enabled, if you turn off, at least if you have no script you can use this option
Had the same problem. $$anonymous$$y solution: I had too much trees in the level so i had to uncheck "Enable Tree Coliders" at Terrain Colider from Terrain. And it works fine.
But there's some bug with the light with it anyway.
I was also having the same problem but I realized that this problem started after I imported the 3d game kit from the store so I imagined that the package changed something and how it seemed to have something to do with physics so I meched a lot of things but I deleted the package but still it kept falling down so i thought i must have changed the project configuration still went to> project setings> physics and reset the configuration and solved my problem right afterwards i opened another project that worked well to see what was different and it was just> physics> Auto sync Transforms was disabled when enabling this solved this problem: D I hope it is your case also good luck: D
Answer by amr nasr · Jan 26, 2011 at 08:44 PM
i ran into the same problem
you can see it here
http://www.youtube.com/watch?v=HFxIqHIcg_M
Can anybody help regarding that matter, i tried all what have been said , the terrain has a collider and the character has a collider and a rigid body and there is not trigger on and tha character is above the ground. although all of that , i am still having problems with it . as the characters fall through the terrain.
i have two characters Goober the big character and another avatar they both fall through the terrain. not only that that other avatar which i have three of it had some deformations as its shape changed and i don't know why is that. i also tried adding three spheres that has rigid bodies they fall but stay still in their places as shown in the video
I am having the same probem....
I checked all these tutorials about this issue and even if all of them are done to make it work as people say it would, it still doesnt work.
I think Unity has a bug issue.
I am surprised how no one can answer this question.
Guys check that your character controller is on its place as well. If it's inside the ground already, you fall.