mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
cca4fc76de
# Objective When working on `leafwing-input-manager` and in my games, I've found these compass directions to be both clear and useful when attempting to describe angles in 2 dimensions. This was directly used when mapping gamepad inputs into 4-way movement as a virtual dpad, and I expect other uses are common in games. ## Solution - Add constants corresponding to the 4 cardinal and 4 semi-cardinal directions. ## Testing - I've validated the quadrants of each of the directions through self-review. --------- Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |