Emit sound from head

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

View File

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

View File

@ -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,
);