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

pitfall: 2d camera and sprites not showing properly #55

Closed
inodentry opened this issue Apr 11, 2021 · 0 comments
Closed

pitfall: 2d camera and sprites not showing properly #55

inodentry opened this issue Apr 11, 2021 · 0 comments
Labels
C-enhancement New content that isn't covered already S-pitfalls Content in the Pitfalls chapter

Comments

@inodentry
Copy link
Contributor

inodentry commented Apr 11, 2021

Clarify that bevy's 2d camera bundle constructor creates a Transform that positions the camera at Z=999 (or something like that, close to the clipping plane). For 2d to behave as expected (Y axis up, looking towards -Z, background at Z=0, higher sprite layers at positive Z coorditnates), this must be preserved.

If users try to create their own transform for their 2d camera, and don't put it at this far-away Z coordinate, they might wonder why they can't see their sprites, or why sprites appear flipped, or why they need to use negative Z coordinates, etc...

@inodentry inodentry added S-pitfalls Content in the Pitfalls chapter C-enhancement New content that isn't covered already labels Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New content that isn't covered already S-pitfalls Content in the Pitfalls chapter
Projects
None yet
Development

No branches or pull requests

1 participant