Space Pizza™ chef: add chef hat AR overlay

This commit is contained in:
yuni 2024-04-10 22:36:19 +02:00
parent 86c2c5e410
commit 5f56d63d32
4 changed files with 4 additions and 2 deletions

Binary file not shown.

View file

@ -188,6 +188,7 @@ actor -3300 10 0 pizzeria
relativeto pizzeria
name "Space Pizza™"
chatid pizzeria
armodel suit_ar_chefhat
alive yes
scale 2
collider capsule 1 0.5

View file

@ -680,7 +680,7 @@ fn update_ar_overlays (
state.overlays_visible = settings.hud_active;
if need_update || need_clean || need_activate {
'outer: for (mut trans, mut vis, ar) in &mut q_overlays {
for (mut trans, mut vis, ar) in &mut q_overlays {
for (owner_id, owner_trans, owner_vis) in &q_owners {
if owner_id == ar.owner {
*trans = *owner_trans;
@ -690,7 +690,7 @@ fn update_ar_overlays (
else {
*vis = *owner_vis;
}
break 'outer;
break;
}
}
}

View file

@ -24,6 +24,7 @@ const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0";
pub fn asset_name_to_path(name: &str) -> &'static str {
match name {
"suit" => "models/suit.glb#Scene0",
"suit_ar_chefhat" => "models/suit_ar_chefhat.glb#Scene0",
"asteroid1" => ASSET_ASTEROID1,
"asteroid2" => ASSET_ASTEROID2,
"moonlet" => "models/moonlet.glb#Scene0",