cloudhead / cloudhead/rgx.legacy
Sprite rotation
Open
- Dominant language
- Rust
- Stars
- 193
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Are there any plans to introduce an ability to rotate sprites added to the sprite batch?
In theory, it should be pretty easily done by introducing something like `RotationRect` as an extension of `Rect`, which will contain additional info about the angle and origin of rotation. Later this `RotationRect` may be used by calling `batch.add_rotated`.
As an alternative, it might be a good solution to go "XNA" way by adding both angle and origin to the direct `batch.add` call.
Contributor guide
Assessment
This issue has not been assessed yet.