Benjamin Halsted
Benjamin Halsted

Reputation: 31

In BevyEngine, which direction is up?

It isn't clear which coordinate system the engine uses.

I've tried looking through the documentation and the book.

Upvotes: 2

Views: 574

Answers (2)

Marsius
Marsius

Reputation: 1

Positive Y axis is up.

Search the Bevy cheatbook

Upvotes: 0

workerjoe
workerjoe

Reputation: 2645

The reference you want is in the Bevy Cheatbook: 3.1. Coordinate System.

  • X goes from left to right (+X is "right")
  • Y goes from bottom to top (+Y is "up")
  • Z goes from far to near (+Z is "toward the viewer")

The cheatbook goes on to add that "for UI, Bevy follows the same convention as most other UI toolkits, the Web, etc." in which Y begins at the top (+Y is "down").

There's a cool graphic to accompany the article, which I hope I'm allowed to share here: enter image description here

Upvotes: 2

Related Questions