- Home /
Plane falling through rightside of Floor
Hail Uniteers!
I've recently begun fiddling with unity again and can't get my head around this particular problem i'm facing:
I have an up-right plane that doubles as the player and has a rigidbody attached to it. Logically, it needs to collide with the floor, so that's where my cube comes in! However, it collides with the left side of the top face of the cube just fine, but falls straight through the right side of the top face..
I've also tried swapping the cube for a plane, but that doesn't collide at all..
You can download this tiny project at: https://dl.dropbox.com/u/10740760/bbb.zip
If anyone can help me figure out what's happening i'd be most grateful!
Tested the project, box collider works fine. Also your constraints are wrong.
Answer by Bunny83 · Aug 24, 2012 at 05:40 PM
I've not downloaded your project, but collisions only work with the outside of a mesh. The collisions are always one way. Face agains face but it never works from the other side. Since the plane uses a MeshCollider and the plane mesh has only one side, it can't collider from the other side.
One way is to attach a boxcollider instead of the Meshcollider and adjust the size to fit the plane. It need to have at least a small z value since it can't be 0.
After asking this question I immediatly found the solution. I should've known planes only collide one way.