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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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