Compare commits

..

3 commits

3 changed files with 15 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# v0.11.1
- Added space suit thruster particle effects
- Fixed radio stations
# v0.11.0

View file

@ -624,7 +624,12 @@ fn handle_wants_lookat(
} else {
continue;
};
rot.0 = look_at_quat(**pos, target_pos, trans.up().as_dvec3());
let up = if trans.translation.length_squared() > 1e-6 {
trans.up()
} else {
Dir3::Y
};
rot.0 = look_at_quat(**pos, target_pos, up.as_dvec3());
}
}

View file

@ -219,6 +219,14 @@ pub fn handle_game_event(
}
GameEvent::SetMenu(turn) => {
settings.menu_active = turn.to_bool(settings.menu_active);
for mut window in &mut q_window {
window.cursor.grab_mode = if settings.menu_active {
bevy::window::CursorGrabMode::None
} else {
bevy::window::CursorGrabMode::Locked
};
window.cursor.visible = settings.menu_active;
}
ew_updatemenu.send(menu::UpdateMenuEvent);
}
GameEvent::SetThirdPerson(turn) => {