Collision object scales with object on x axis but not on y axis

I have an object with a sprite and a collision object, and I notice that when I put it a collection and set the object’s size, the collision object will scale along with the object’s x-axis scale, but not with the y axis scale. I also noticed that when I set the x scale to a small enough value, the collision object would change its size on the y axis even when no changes were made to it.

I googled it and it seems that similar issues have been encountered before, and from the looks of it, this is a bug, so I guess I’m gonna report this as one.

Any help is much appreciated, thanks.

Neither Box2D nor Bullet3D support non uniform scaling. So it’s not a bug.

So there’s no way to scale a collision object?

Collision objects can be scaled; explained at the bottom of this page: Collision shapes

If you scale the game object containing the collision object(s) uniformly (the same scale factor on all axes) it should work.

Make sure the Allow Dynamic Transforms is ticked.

Scaling collision objects can be tricky. Have you tried enabling ‘Allow Dynamic Transforms’ or using uniform scaling for your game object? That might help with the issue.