Skip to content

FlxMatrixSprite #3427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

FlxMatrixSprite #3427

wants to merge 7 commits into from

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Apr 29, 2025

WIP

Alternative to #3241

@DetectiveBaldi
Copy link
Contributor

Just noticing since this has some code based on my pr, skewDegress seems to have incorrect ordered parameters in docs and also seems to pass in the wrong arguments to skewRadians, not sure how I fumbled that lol

*/
public inline function skewDegrees(skewX:Float, skewY:Float):FlxMatrix
{
return skewRadians(skewY * FlxAngle.TO_RAD, skewX * FlxAngle.TO_RAD);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are flipped

Suggested change
return skewRadians(skewY * FlxAngle.TO_RAD, skewX * FlxAngle.TO_RAD);
return skewRadians(skewX * FlxAngle.TO_RAD, skewY * FlxAngle.TO_RAD);

Comment on lines +25 to +29
b = Math.tan(skewY);

c = Math.tan(skewX);

return this;
Copy link
Member Author

@Geokureli Geokureli Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DetectiveBaldi these are flipped too, right?

Suggested change
b = Math.tan(skewY);
c = Math.tan(skewX);
return this;
b = Math.tan(skewX);
c = Math.tan(skewY);
return this;

Copy link
Contributor

@DetectiveBaldi DetectiveBaldi Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell this is intended as intended, the same behavior can be seen in the original FlxSkewedSprite class:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants