Compare commits
3 commits
16a578d294
...
cdc1dcec36
Author | SHA1 | Date | |
---|---|---|---|
yuni | cdc1dcec36 | ||
yuni | cb34bba7d8 | ||
yuni | 8b0d4d3df9 |
|
@ -1,5 +1,6 @@
|
|||
# v0.11.1
|
||||
|
||||
- Added space suit thruster particle effects
|
||||
- Fixed radio stations
|
||||
|
||||
# v0.11.0
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue