CNUKYNOFQ4V4OBMVMKMIV3JMRRR4NMMBTWZQ6UIVCCPVQLAEOGJQC
commands
.spawn()
.insert(Racer(1))
.insert(Position(0.))
.insert(Velocity(0.))
.insert(Acceleration(2.));
commands
.spawn()
.insert(Racer(2))
.insert(Position(0.))
.insert(Velocity(0.))
.insert(Acceleration(4.));
commands
.spawn()
.insert(Racer(3))
.insert(Position(0.))
.insert(Velocity(0.))
.insert(Acceleration(0.5));
let racer_init_stats: Vec<f32> = vec![2., 3., 0.5];
for (n, &a) in racer_init_stats.iter().enumerate() {
commands
.spawn()
.insert(Racer(n))
.insert(Position(0.))
.insert(Velocity(0.))
.insert(Acceleration(a));
}