hee hee spinny square
This commit is contained in:
parent
866490795d
commit
26cf4c7453
1 changed files with 7 additions and 0 deletions
|
@ -60,9 +60,16 @@ fn main() {
|
||||||
.insert_resource(WinitSettings::desktop_app())
|
.insert_resource(WinitSettings::desktop_app())
|
||||||
.add_plugins(DefaultPlugins)
|
.add_plugins(DefaultPlugins)
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
|
.add_systems(Update, rotate_board)
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn rotate_board(mut board: Query<&mut Transform, With<Board>>) {
|
||||||
|
let mut board = board.get_single_mut().unwrap();
|
||||||
|
|
||||||
|
board.rotate_local_z(0.1);
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
struct Board;
|
struct Board;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue