-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
swap translate <--> scale transforms #385
Conversation
commit: |
No, certainly not. That would completely break collision detection itself. |
So, where is the "out-of-order" transformations at? |
This PR is empty now, but if I find the out-of order transformations I'll fix it here |
Possibly here, applying the scale is done before offset. But you shouldn't only change the code, but test it as well. worldArea(this: GameObj<AreaComp | AnchorComp>): Polygon {
|
ok I tried it there
|
Didn't it update itself? I think it did. |
Yeah it did (I noticed like 30 seconds after I added that comment, see the edit)
I installed it and tested, it seems to work for me. |
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.
👍
ref: #381 (comment)
@mflerackers : "translate and scale transforms were done in the wrong order before drawing for some reason. It's an easy fix..."
is this the fix?
closes #381 if it is