pub fn sync_transforms(mut query: Query<(&mut bevy::transform::components::Transform, &Pos)>) {
    debug!("sync_transforms");
    for (mut transform, pos) in query.iter_mut() {
        let z = transform.translation.z;
        transform.translation = pos.0.extend(z);
    }
}
/// Copies positions from the physics world to bevy Transforms
Copies positions from the physics world to bevy Transforms
Copies positions from the physics world to bevy Transforms
pub fn sync_transforms(mut query: Query<(&mut bevy::transform::components::Transform, &Pos)>) {
    debug!("sync_transforms");
    for (mut transform, pos) in query.iter_mut() {
        let z = transform.translation.z;
        transform.translation = pos.0.extend(z);
    }
}
pub fn sync_transforms ( mut query : Query < ( & mut bevy :: transform :: components :: Transform , & Pos ) > ) { debug ! ( " " ) ; for ( mut transform , pos ) in query . iter_mut ( ) { let z = transform . translation . z ; transform . translation = pos . 0 . extend ( z ) ; } }
Copies positions from the physics world to bevy Transforms
Copies positions from the physics world to bevy Transforms
query
Query<(&mut bevy::transform::components::Transform, &Pos)>
query
Query<(&mut bevy::transform::components::Transform, &Pos)>