From fb51fd3230ddfa7e24a4967b7e42d0cbc2a6fc10 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 15 Jun 2021 23:01:16 +0100 Subject: [PATCH] Emit sound from head --- common/src/comp/controller.rs | 1 + common/systems/src/controller.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/comp/controller.rs b/common/src/comp/controller.rs index d157b87853..fafd138da2 100644 --- a/common/src/comp/controller.rs +++ b/common/src/comp/controller.rs @@ -101,6 +101,7 @@ pub enum UtteranceKind { Calm, Angry, Surprised, + Hurt, } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] diff --git a/common/systems/src/controller.rs b/common/systems/src/controller.rs index c576e22dc6..2aea04b55a 100644 --- a/common/systems/src/controller.rs +++ b/common/systems/src/controller.rs @@ -104,7 +104,7 @@ impl<'a> System<'a> for Sys { ) { let sound = Sound::new( SoundKind::Utterance(kind, *body), - pos.0, + pos.0 + Vec3::unit_z() * body.eye_height(), 8.0, // TODO: Come up with a better way of determining this 1.0, );