card playing 1/2
This commit is contained in:
parent
0e3afb5e7a
commit
c24a9f3cec
7 changed files with 117 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
#[derive(Component)]
|
||||
#[require(Transform)]
|
||||
pub struct AnimatedTransform {
|
||||
pub translation: Vec3,
|
||||
}
|
||||
|
|
@ -11,6 +12,11 @@ impl AnimatedTransform {
|
|||
translation: Vec3 { x, y, z },
|
||||
}
|
||||
}
|
||||
pub fn identity() -> Self {
|
||||
AnimatedTransform {
|
||||
translation: Vec3::ZERO,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn transform_animation(query: Query<(&mut Transform, &AnimatedTransform)>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue