x


Falling through the floor issue

Hi,

I've only been using Unity for a few days, and have been following TornadoTwins tutorials on making a simple third person game. I'm sure people have asked this before, but why on earth does my Sphere fall through the floor? Both have colliders, and the Sphere has a character controller with the script that the tutorial provides. I've followed exactly what the tutorial says, and the Sphere is definitely off the ground. What's gone wrong?

more ▼

asked Oct 10 '10 at 02:51 PM

user-5386 (yahoo) gravatar image

user-5386 (yahoo)
25 2 2 5

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

10 answers: sort voted first

Wow! That totally worked for me. I had the same problem. Moved my room mesh down to 0,0,0 and the collider started working. However, since I imported from a Maya file, is there another way around this besides moving all my objects into place since now they don't align correctly. Said another way, the maya fbx at 0,0,0 doesn't work, only when I move the object I'm trying to collide with. Tried Freezing Transforms before exporting FBX as well with no luck.

Found it. Forgot to reverse the normals of the room mesh. If your having trouble with an interior scene, try bringing your camera above the ceiling and see if your camera sits on top. If so, try reversing your normals in Maya/Max.

more ▼

answered Oct 26 '10 at 04:04 AM

cstevens gravatar image

cstevens
16 2

I don't use Maya or Max. I use Blender. Anyway, if this is the case, are you saying that the room mesh is the grey grid which always appears in the scene, an if so, how do you set it to 0,0,0?

Oct 29 '10 at 05:18 PM user-5386 (yahoo)
(comments are locked)
10|3000 characters needed characters left

What version and OS are you using? In 3.2 Mac, I'm getting this issue and believe it must be a bug, since I've poured over all these forum/answer solutions to no avail. I'd love a Unity tech to try a basic example of 2 cubes, one over top of the other - top one with rigidbody and gravity, and bottom with box/cube collider. All other standard settings that you get upon install ... cube will fall thru the other. Is there a work around script or something? I've reset coords to 0s, ensured that no funny boxes were ticked, nothing overlaps etc..

more ▼

answered Feb 16 '11 at 04:37 AM

Kootenay gravatar image

Kootenay
13 1 1 3

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

make sure neither collider is touching the other

more ▼

answered Oct 10 '10 at 03:40 PM

Oriek27 gravatar image

Oriek27
82 9 10 18

I've already made sure of that... I can't think of what it might be.

Oct 10 '10 at 04:01 PM user-5386 (yahoo)

does the sphere have a rigid-body?

Oct 10 '10 at 05:32 PM Oriek27

No, but when I apply one to it, it just makes the sphere's descent into oblivion a little jittery. I can't find anything on the internet that helps either...

Oct 10 '10 at 06:52 PM user-5386 (yahoo)

try to remove the sphere collider and just have the rigid-body on the sphere, while leaving the box collider on the floor. and maybe you could post a video on Youtube showing exactly whats happening

Oct 11 '10 at 02:46 AM Oriek27

Hmm.. It still doesn't appear to be working. Is there something wrong with the program itself? I don't have a Youtube account or any means of video recording the problem, (I'm useless, I know). Anyway, shouldn't the sphere just need the character controller to stay on the ground? The tutorial's example doesn't have a collider attached.

Oct 11 '10 at 04:00 PM user-5386 (yahoo)
(comments are locked)
10|3000 characters needed characters left

Hi I had the same problem and I posted in forums nothing helped. The answer is that your object must have all zeros in position when you create it. Then run the game and it won't fall through the floor. The engine is funny like that. Let me know if this helped.

more ▼

answered Oct 15 '10 at 10:20 AM

marvin evins gravatar image

marvin evins
1

Hm, do you mean that the object with the controller's position should be 0,0,0, and have the floor moved down so that they aren't touching, or a different meaning?

Oct 15 '10 at 03:36 PM user-5386 (yahoo)

I'm trying that and it's still falling through. any other suggestions??

Jan 08 '11 at 11:41 PM kimi
(comments are locked)
10|3000 characters needed characters left

The co ordinates r nt imp.... make a floor...DO NOT make it Rigid Body... use a sphere...make it Rigid Body....ur floor....wnt fall down..n ur sphere will rest on d floor...:-)

more ▼

answered Feb 20 '12 at 08:48 AM

Newbee gravatar image

Newbee
1 1 2 3

(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:

x1089
x97
x60
x39

asked: Oct 10 '10 at 02:51 PM

Seen: 8642 times

Last Updated: Apr 14 at 11:21 AM