- Home /
Problem is not reproducible or outdated
Changing thickness of plane collider in default plane...
It looks like the thickness of the default plane's collider actually changes with the plane when you scale it to a larger size!! Is there a way to change the thickness?
What do you mean by 'thickness'? If you mean in the local Y direction (perpendicular to the plane), then it won't change thickness because a plane has no thickness (definition of plane). However, the X & Z size of the collider does scale with the plane.
Actually the plane collider's thickness grows with scale! Try it! (Note, it's the plane collider and not the rendered mesh.)
I agree to @rabbitfang: the plane uses a mesh collider, but it has no thickness - it's a single-sided collider, like a Plane geometric entity: the back face does not detect collisions.
@ina, What version of Unity are you running? I'm using 3.4.2f3 and the collider doesn't get "thicker" as I scale the object.
@ina, I did try it with the plane collider. The collider did not change thickness at all. $$anonymous$$ake sure you are using the correct collider.
P.S. I turned of the rendered mesh so only the collider's wireframe was visible. No change.
Answer by Eric5h5 · Jan 02, 2012 at 02:45 PM
The thickness does not change on the default plane collider--it's a 1-sided mesh collider and it's mathematically impossible for it to have any thickness. You can always replace any collider with whatever you want, such as a box collider, if you want it to have thickness. Conversely, if you don't want any thickness, then a mesh collider using the default plane mesh will provide that.
Answer by rabbitfang · Jan 03, 2012 at 04:30 PM
Turn off the "Convex" option in the mesh collider. The calculations are being screwed up when you tell it to be convex.