shoot. TODO: fix collision and brief spawning at 0,0

This commit is contained in:
2022-08-16 20:46:10 +02:00
parent 56fdaabb1a
commit 614092a8eb
3 changed files with 17 additions and 15 deletions

View File

@@ -275,12 +275,12 @@ fn client_sync_players(
for i in 0..frame.entities.entities.len() {
if let Some(entity) = network_mapping.0.get(&frame.entities.entities[i]) {
let translation = frame.entities.translations[i].into();
let transform = Transform {
let transform_bundle = TransformBundle::from(Transform {
translation,
..Default::default()
};
});
commands.entity(*entity).insert(transform);
commands.entity(*entity).insert_bundle(transform_bundle);
}
}
}