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!

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.

I answered the same question on:

http://answers.unity3d.com/questions/1228083/box-colliders-and-negative-scales.html?childToView=1394197#answer-1394197

I hope this helps
Best,

It sometimes happens when you duplicate objects in scene, unity does something weird with the box collider.

155343-schermafbeelding-2020-03-29-om-032159.png

Its mostly not the object the Console shows, but the one you interact with.

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.