Skip to content
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

Incorrect default Origin value for Sprite class #968

Open
AristurtleDev opened this issue Jan 10, 2025 · 0 comments
Open

Incorrect default Origin value for Sprite class #968

AristurtleDev opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels

Comments

@AristurtleDev
Copy link
Member

The Sprite class should have a default origin of (0, 0) to match the default SpriteBatch.Draw origin parameter being the top-left corner. Currently, in the Sprite constructor, OriginNormalized is set to (0.5, 0.5) which is causing the Origin to update to center of the sprite.

OriginNormalized = new Vector2(0.5f, 0.5f);

This should be set to the default Vector2 value or Vector2.Zero

@AristurtleDev AristurtleDev self-assigned this Jan 10, 2025
AristurtleDev added a commit that referenced this issue Jan 10, 2025
AristurtleDev added a commit that referenced this issue Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant