You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Origin is not being set correctly now that the updated code for OriginNormalized is using UV's.
The OriginNormalized is set to 0.5, and then the Origin ends up ALSO being set to 0.5 This is breaking tutorials and code that wants the origin to be the midway point.
The more I look at the code, the more I think it just needs to get reverted, I don't see the point of using the UV's here.
The Origin is supposed to be relative to the Rectangle Bounds. Thus, the original code was accurate at saving the Origin, and producing the OriginNormalized value, am I missing something?
The Origin is not being set correctly now that the updated code for OriginNormalized is using UV's.
The OriginNormalized is set to 0.5, and then the Origin ends up ALSO being set to 0.5 This is breaking tutorials and code that wants the origin to be the midway point.
I think it should be using .width and .height
It was updated in PR 897.
From:
to:
In this commit (Hard to find because the file moved and updated in the same PR)
#897
Image to help understand the Texture2DRegion attributes.
https://github.com/craftworkgames/MonoGame.Extended/blob/develop/source/MonoGame.Extended/Graphics/Texture2DRegion.cs
The text was updated successfully, but these errors were encountered: