shoot. TODO: fix collision and brief spawning at 0,0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user