mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Emit sound from head
This commit is contained in:
parent
0ef29a6989
commit
fb51fd3230
@ -101,6 +101,7 @@ pub enum UtteranceKind {
|
||||
Calm,
|
||||
Angry,
|
||||
Surprised,
|
||||
Hurt,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
|
@ -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,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user