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.

  1. create pixi.container add sprite/graphics to.
  2. rotate sprite/graphics , scale container on y axis.
  3. voilá!

Comments

Popular posts from this blog

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -