x


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?

more ▼

asked Nov 11 '10 at 10:52 PM

julesown gravatar image

julesown
16 12 12 14

try adding a rigidbody

Nov 11 '10 at 10:54 PM Jesus_Freak
(comments are locked)
10|3000 characters needed characters left

14 answers: sort voted first

If your character falls through the floor.

  1. 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.

  2. Check your character has a colider

  3. 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.

  4. 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.

more ▼

answered Nov 30 '10 at 12:11 PM

Christoff gravatar image

Christoff
82 19 19 27

(comments are locked)
10|3000 characters needed characters left

Hi, mine was because I had a funky Javascript code attached to my character. Well at least I figured it out.

more ▼

answered May 21 '11 at 06:10 PM

Cosmosphere gravatar image

Cosmosphere
1

(comments are locked)
10|3000 characters needed characters left

I had that happen because I attached a JavaScript code to it. I figured it out from the increment for the motion.

more ▼

answered May 21 '11 at 06:12 PM

Cosmosphere gravatar image

Cosmosphere
1

(comments are locked)
10|3000 characters needed characters left

Verify that Is Trigger is enabled, if you turn off, at least if you have no script you can use this option

more ▼

answered Mar 31 '11 at 10:26 AM

Unamine gravatar image

Unamine
362 14 17 27

(comments are locked)
10|3000 characters needed characters left

I'm having issues with the ThirdPersonController script. It seems to work fine with the default model included, but when adding it to an imported model (human_male in the asset store), the character's placement is slightly lower than the floor. The CharacterController capsule is exactly the size of my character mesh, and all colliders in the scene are set up correctly. Any ideas???

more ▼

answered Nov 04 '11 at 08:35 AM

bigbnan gravatar image

bigbnan
1 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1478
x1047
x97
x4

asked: Nov 11 '10 at 10:52 PM

Seen: 10854 times

Last Updated: Dec 01 '12 at 05:19 PM