bevy_fixed_sprites
Bevy sprites that don't rotate or scale with their transform.
Supports Bevy 0.8
Cargo
= 0.1
Plugin
You need to add the BevyFixedSpritePlugin to your Bevy App before you can draw a
FixedSprite
use *;
app.add_plugin;
Usage
The interface is identical to the normal Bevy sprites, just change the names:
- bevy::sprite::Sprite -> bevy_fixed_sprites::FixedSprite
- bevy::sprite::SpriteBundle -> bevy_fixed_sprites::FixedSpriteBundle
- bevy::sprite::TextureAtlasSprite -> bevy_fixed_sprites::FixedTextureAtlasSprite
- bevy::sprite::SpriteSheetBundle -> bevy_fixed_sprites::FixedSpriteSheetBundle
Although rotation and scale aren't applied to FixedSprites, the flip_* fields and the custom_size field still work as normal.
Example
cargo run --example fixed_sprite