Emit sound from head

This commit is contained in:
Joshua Barretto 2021-06-15 23:01:16 +01:00
parent 0a8d4af404
commit 0d39e4047e
2 changed files with 2 additions and 1 deletions

View File

@ -101,6 +101,7 @@ pub enum UtteranceKind {
Calm, Calm,
Angry, Angry,
Surprised, Surprised,
Hurt,
} }
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]

View File

@ -104,7 +104,7 @@ impl<'a> System<'a> for Sys {
) { ) {
let sound = Sound::new( let sound = Sound::new(
SoundKind::Utterance(kind, *body), 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 8.0, // TODO: Come up with a better way of determining this
1.0, 1.0,
); );