-
Notifications
You must be signed in to change notification settings - Fork 469
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
base: dev
Are you sure you want to change the base?
FlxMatrixSprite #3427
Conversation
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are flipped
return skewRadians(skewY * FlxAngle.TO_RAD, skewX * FlxAngle.TO_RAD); | |
return skewRadians(skewX * FlxAngle.TO_RAD, skewY * FlxAngle.TO_RAD); |
b = Math.tan(skewY); | ||
|
||
c = Math.tan(skewX); | ||
|
||
return this; |
There was a problem hiding this comment.
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?
b = Math.tan(skewY); | |
c = Math.tan(skewX); | |
return this; | |
b = Math.tan(skewX); | |
c = Math.tan(skewY); | |
return this; |
There was a problem hiding this comment.
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:
WIP
Alternative to #3241