Jump to content

Matrix transformation on sprites


Recommended Posts

Hey, I've been looking for a solution for transforming a sprite using a matrix instead of individual properties like scale, skew and rotation. I have a matrix like [0.9120710740479713, 0.05900771211381309, -0.05900771211381309, 0.9120710740479713, 651.3628605915601, 93.3129853864424]. I know that is is possible to calculate from a matrix but doing doesn't always result in the exact scale, skew, rotation that I'm looking for. I want to be able to add this transform directly to the sprite like how it is done normally in canvas. Does Phaser support anything like this or does anyone have a solution to this? I've tried my best to google a solution but I haven't had any luck.

Link to comment
Share on other sites

  • 2 months later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...