bevy/assets
Cameron Hart ac63c491fb Simple 2d rotation example (#3065)
# Objective

Some new bevy users are unfamiliar with quaternions and have trouble working with rotations in 2D.

There has been an [issue](https://github.com/bitshifter/glam-rs/issues/226) raised with glam to add helpers to better support these users, however for now I feel could be better to provide examples of how to do this in Bevy as a starting point for new users.

## Solution

I've added a 2d_rotation example which demonstrates 3 different rotation examples to try help get people started:

- Rotating and translating a player ship based on keyboard input
- An enemy ship type that rotates to face the player ship immediately
- An enemy ship type that rotates to face the player at a fixed angular velocity

I also have a standalone version of this example here https://github.com/bitshifter/bevy-2d-rotation-example but I think it would be more discoverable if it's included with Bevy.
2022-01-25 22:10:11 +00:00
..
android-res/mipmap-mdpi android example polish (#845) 2020-11-11 16:31:16 -08:00
branding Add bevy_bird SVG for simpleicons.org (#3672) 2022-01-17 21:00:43 +00:00
data Asset system rework and GLTF scene loading (#693) 2020-10-18 13:48:15 -07:00
fonts initial text rendering 2020-05-13 13:22:12 -07:00
models add an example using UI & states to create a game menu (#2960) 2022-01-14 19:09:42 +00:00
scenes Fix warning in scene example (#1441) 2021-02-22 03:59:36 +00:00
shaders add some more pipelined-rendering shader examples (#3041) 2022-01-05 19:43:11 +00:00
sounds use ogg by default instead of mp3 (#3421) 2021-12-23 19:19:15 +00:00
textures Simple 2d rotation example (#3065) 2022-01-25 22:10:11 +00:00