javascript - Scaling along Y-axis after rotating in Pixi.js -
i'm trying create isometric grid rotating square 45° , scaling down on (vertical) y-axis. however, pixi.js i'm using, seem scale along local coordinate system after rotation, resulting in square skewed rather squashed.
is there way sequentially apply transforms (first rotate, scale y) in pixi.js, or method allow me scale along vertical y after rotating?
i'm using .rotation , .scale properties of graphics object transformation.
i came solution myself. not quite wanted, simple solution.
- create pixi.container add sprite/graphics to.
- rotate sprite/graphics , scale container on y axis.
- voilá!
Comments
Post a Comment