fn move_system(time: Res<Time>, mut query: Query<(&Velocity, &mut Transform)>) {
    let delta = time.delta_seconds();

    for (velocity, mut transform) in query.iter_mut() {
        transform.translation += delta * velocity.translation;
        transform.rotate(Quat::from_rotation_z(velocity.rotation * delta));
    }
}
/// Apply velocity to positions and rotations.
Apply velocity to positions and rotations.
Apply velocity to positions and rotations .
fn move_system(time: Res<Time>, mut query: Query<(&Velocity, &mut Transform)>) {
    let delta = time.delta_seconds();
    for (velocity, mut transform) in query.iter_mut() {
        transform.translation += delta * velocity.translation;
        transform.rotate(Quat::from_rotation_z(velocity.rotation * delta));
    }
}
fn move_system ( time : Res < Time > , mut query : Query < ( & Velocity , & mut Transform ) > ) { let delta = time . delta_seconds ( ) ; for ( velocity , mut transform ) in query . iter_mut ( ) { transform . translation += delta * velocity . translation ; transform . rotate ( Quat :: from_rotation_z ( velocity . rotation * delta ) ) ; } }
Apply velocity to positions and rotations.
Apply velocity to positions and rotations .
time
Res<Time>
query
Query<(&Velocity, &mut Transform)>
time
Res<Time>
query
Query<(&Velocity, &mut Transform)>