- Home /
Warning: BoxColliders does not support negative scale or size
Since upgrading to Unity 5.4, I've been continually getting this warning.
My game has a level editor where users can rotate and rescale objects. Allowing a negative scale has always been possible and disabling that would either a) greatly limit user's ability to customize their level, or b) be an enormous amount of work to positively scale/recenter the collider separately from the object.
There doesn't seem to be an actual impact from the warning though. BoxColliders still work as expected, regardless of a negative scale.
My question is, will this ever ACTUALLY affect gameplay, or will BoxColliders still work as expected? If not, is there any way to disable this (very frequent, very irritating) warning?
Thanks!
It is in general not a good idea to use a negative scale for any objects. $$anonymous$$eshes usually get their faces inverted. Do you work with 2d or 3d objects? What kind of objects do we talk about?
Answer by V0odo0 · Sep 30, 2016 at 06:00 PM
In my case this causes a mess with physics when dealing with joints. There is no warnings from other type of negatively scaled colliders but also gives strange behavior.
I think it's all be Ok until one of your negatively scaled collider will have joint attached. Except of annoying warning of course.
Answer by xTyler73 · Jun 19, 2017 at 09:40 PM
A way to fix this is to actually set the scale of the object with the box collider that is causing the warning to be negative. The negative of this object combined with the parent object that is negative cancels them out to be positive.
Answer by omarmoh-om · Aug 15, 2017 at 09:12 PM
I answered the same question on:
I hope this helps Best,
Answer by Huldor · Mar 29, 2020 at 01:26 AM
It sometimes happens when you duplicate objects in scene, unity does something weird with the box collider.
Its mostly not the object the Console shows, but the one you interact with.
Your answer
Follow this Question
Related Questions
How to suppress BoxCollider warning 2 Answers
Mesh Collider from 3d max animation? 1 Answer
How to scale a collider still conforming to PhysX? 1 Answer
Boxcollider is much bigger than the actual Object (imported from Blender) 2 Answers
How can I make diagonal collisions work with raycasts from a boxcollider? (3D, C#) 0 Answers