Crates.io | bevy_fixed_sprites |
lib.rs | bevy_fixed_sprites |
version | 0.2.0 |
source | src |
created_at | 2022-10-03 23:33:33.151035 |
updated_at | 2022-10-06 16:03:38.275013 |
description | Bevy sprites that don't rotate or scale with their transform |
homepage | |
repository | https://github.com/ickshonpe/bevy_fixed_sprites |
max_upload_size | |
id | 679526 |
size | 109,513 |
Bevy sprites that have their own transform independent of the bevy transform hierarchy.
Each sprite's Transform
has the same scale and rotation.
Supports Bevy 0.8
[dependency]
bevy_fixed_sprites = 0.2
You need to add the FixedSpritePlugin
to your Bevy App before you can draw a
FixedSprite
use bevy_fixed_sprites::*;
app.add_plugin(FixedSpritesPlugin);
For bevy_fixed_sprites' equivalents to regular bevy sprites use:
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
cargo run --example fixed_sprite
cargo run --example hierarchy