Scaling along the Y axis after rotation in Pixi.js

I'm trying to create an isometric grid by rotating the 45 ยฐ square and then zooming out (vertically) along the Y axis. However, the Pixi.js I use seems to scale along the local coordinate system after rotation, resulting in a square. which looks distorted rather than compressed.

Is there a way to sequentially apply transformations (first rotate and then scale Y) to Pixi.js or another method that would allow me to scale along the vertical Y after rotation?

I am currently using the .rotation and .scale properties of a Graphics object for my conversion.

+4
source share
1 answer

. , , .

  • Pixi.Container, Sprite/Graphics.
  • Sprite/Graphics Y.
  • !
0

Source: https://habr.com/ru/post/1653906/


All Articles