Changing rigidbody dimensions

Is there a "safe" way to change dimensions of a rigidbody post creation? I'm being asked to create a simulation of a wall of tin cans, and with the cans upright this is no issue, but they'd like to show them "tipping over" on their x axis. I'm not thinking 3d here, i'll happily just fake it based on its linear velocity, so i'm looking if theres a way to just scale the rigidbody along one axis.

Or is the recommended way to clone the existing one and replace it?

Thanks,

Andreas
Yeah, sorry. There's no way to scale shapes. In v1.4.3 you cannot edit the shapes of a body at all, so the only recourse, as you say, is to clone the body but with different shapes.

I've never done it myself, so there may be some caveats. Anyone? One thing to bear in mind is that the constantly changing shapes will not behave quite correctly with respect to physics, though they will at least ensure bodies don't overlap, which sounds like it is enough for your purpose.

Original thread: https://box2d.org/forum/viewtopic.php?t=473