Skip to content

Incorrect default Origin value for Sprite class #968

@AristurtleDev

Description

@AristurtleDev

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.

https://github.com/craftworkgames/MonoGame.Extended/blob/080f5e1f23ed25e0011c7d6471b3e37fada85c30/source/MonoGame.Extended/Graphics/Sprite.cs#L148

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions