Skip to content

Commit

Permalink
added support for sprite scale in RenderPixi, closes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 28, 2014
1 parent 4746eb9 commit 8dea166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/RenderPixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -426,4 +428,4 @@ var RenderPixi = {};
return texture;
};

})();
})();

0 comments on commit 8dea166

Please sign in to comment.