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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.