Scale physical bodies

Hi,

when I scale the world like
game.world.scale=0.5
Then the box2d bodies of the sprites are offset relative to the sprite. Additionally, the body is not scaled down like the sprite. This means the body and sprite are not equal anymore.

Could anyone experience the same issue? How can I scale a box2d body to fit a sprite which was scaled by world?

Hint: box2d differs from p2 and arcade.

I don’t know anything about Box2D, but with Arcade I would avoid scaling game.world and instead render to a bitmap and scale it.

I need to scale the world as I have one set of assets and resolutions are different.
I dont wanna scale all 1501 assets by hand:/

You see the body is not following the assets? I was seeing this effect within my game, too. But (it’s a wtf moment), the assets collide with each other, not the bodies. Seems like the bodies are irrelevant as the sprites collide with each other and not their bodies.
I expected a different behaviour. Whatever. As long as it works as expected.

The bodies are following the real sprites (behind the bitmap, which is zooming in and out). That’s the only way to keep the physics correct, AFAIK.