|
|
|
@ -51,16 +51,6 @@ fn main() -> Result { |
|
|
|
bevy_fix_cursor_unlock_web::FixPointerUnlockPlugin, |
|
|
|
bevy_fix_cursor_unlock_web::FixPointerUnlockPlugin, |
|
|
|
)); |
|
|
|
)); |
|
|
|
|
|
|
|
|
|
|
|
// Make entities require the `Pickable` component if
|
|
|
|
|
|
|
|
// they should be considered for the picking system.
|
|
|
|
|
|
|
|
app.insert_resource(UiPickingSettings { |
|
|
|
|
|
|
|
require_markers: true, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
app.insert_resource(MeshPickingSettings { |
|
|
|
|
|
|
|
require_markers: true, |
|
|
|
|
|
|
|
..default() |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.add_plugins(( |
|
|
|
app.add_plugins(( |
|
|
|
common::assets::plugin, |
|
|
|
common::assets::plugin, |
|
|
|
common::network::plugin, |
|
|
|
common::network::plugin, |
|
|
|
@ -131,6 +121,5 @@ fn handle_predicted_player_spawn(event: On<Add, Predicted>, mut commands: Comman |
|
|
|
InputMarker::<Action>::default(), |
|
|
|
InputMarker::<Action>::default(), |
|
|
|
// TODO: Attach camera to player head eventually.
|
|
|
|
// TODO: Attach camera to player head eventually.
|
|
|
|
Camera3d::default(), |
|
|
|
Camera3d::default(), |
|
|
|
MeshPickingCamera, |
|
|
|
|
|
|
|
)); |
|
|
|
)); |
|
|
|
} |
|
|
|
} |
|
|
|
|