diff --git a/src/render/RenderPixi.js b/src/render/RenderPixi.js index 6bf6c1d..b69b936 100644 --- a/src/render/RenderPixi.js +++ b/src/render/RenderPixi.js @@ -314,6 +314,8 @@ var RenderPixi = {}; sprite.position.x = body.position.x; sprite.position.y = body.position.y; sprite.rotation = body.angle; + sprite.scale.x = bodyRender.sprite.xScale || 1; + sprite.scale.y = bodyRender.sprite.yScale || 1; } else { var primitiveId = 'b-' + body.id, primitive = render.primitives[primitiveId], @@ -426,4 +428,4 @@ var RenderPixi = {}; return texture; }; -})(); \ No newline at end of file +})();