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
0a8d4af404
commit
0d39e4047e
@ -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)]
|
||||||
|
@ -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,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user