Space Pizza™ chef: add chef hat AR overlay
This commit is contained in:
parent
86c2c5e410
commit
5f56d63d32
BIN
assets/models/suit_ar_chefhat.glb
Normal file
BIN
assets/models/suit_ar_chefhat.glb
Normal file
Binary file not shown.
|
@ -188,6 +188,7 @@ actor -3300 10 0 pizzeria
|
||||||
relativeto pizzeria
|
relativeto pizzeria
|
||||||
name "Space Pizza™"
|
name "Space Pizza™"
|
||||||
chatid pizzeria
|
chatid pizzeria
|
||||||
|
armodel suit_ar_chefhat
|
||||||
alive yes
|
alive yes
|
||||||
scale 2
|
scale 2
|
||||||
collider capsule 1 0.5
|
collider capsule 1 0.5
|
||||||
|
|
|
@ -680,7 +680,7 @@ fn update_ar_overlays (
|
||||||
state.overlays_visible = settings.hud_active;
|
state.overlays_visible = settings.hud_active;
|
||||||
|
|
||||||
if need_update || need_clean || need_activate {
|
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 {
|
for (owner_id, owner_trans, owner_vis) in &q_owners {
|
||||||
if owner_id == ar.owner {
|
if owner_id == ar.owner {
|
||||||
*trans = *owner_trans;
|
*trans = *owner_trans;
|
||||||
|
@ -690,7 +690,7 @@ fn update_ar_overlays (
|
||||||
else {
|
else {
|
||||||
*vis = *owner_vis;
|
*vis = *owner_vis;
|
||||||
}
|
}
|
||||||
break 'outer;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0";
|
||||||
pub fn asset_name_to_path(name: &str) -> &'static str {
|
pub fn asset_name_to_path(name: &str) -> &'static str {
|
||||||
match name {
|
match name {
|
||||||
"suit" => "models/suit.glb#Scene0",
|
"suit" => "models/suit.glb#Scene0",
|
||||||
|
"suit_ar_chefhat" => "models/suit_ar_chefhat.glb#Scene0",
|
||||||
"asteroid1" => ASSET_ASTEROID1,
|
"asteroid1" => ASSET_ASTEROID1,
|
||||||
"asteroid2" => ASSET_ASTEROID2,
|
"asteroid2" => ASSET_ASTEROID2,
|
||||||
"moonlet" => "models/moonlet.glb#Scene0",
|
"moonlet" => "models/moonlet.glb#Scene0",
|
||||||
|
|
Loading…
Reference in a new issue