Hi all,
I've a problem with Phaser and Box2D Physic.
I created a game where I load sprites and apply a polygonal body to them through a series of coordinates.
When I resize the sprite I send the coordinates to a function that recalculates them based on the scaling factor.
The coordinate array returned to me is correct, but when I redraw the body I have the effect shown in the attachment image.
In other words, a square is always drawn in the same position and with the same dimensions. The coordinates of the square AREN'T present in my array.
I realized that this occurs when there are very close coordinates 'cause if the scaling factor isn't so small the problem doesn't occur.
Can someone help me?
Thanks in advance, Vittorio