order systems in axes example (#12486)

# Objective

- in example `axes`, the axes are sometime one frame late to follow
their mesh

## Solution

- System `move_cubes` modify the transforms, and `draw_axes` query them
for the axes
- if their order is not specified, it will be random and sometimes axes
are drawn before transforms are updated
- order systems
This commit is contained in:
François Mockers 2024-03-15 01:54:42 +01:00 committed by GitHub
parent d3d9cab30c
commit 1073c49f96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.add_systems(Update, (move_cubes, draw_axes))
.add_systems(Update, (move_cubes, draw_axes).chain())
.run();
}