Example character level animations.
This commit is contained in:
@ -95,7 +95,7 @@ void AudioSource::onStart() {
|
||||
alGenBuffers((ALuint)AUDIO_SOURCE_BUFFER_COUNT, this->buffers);
|
||||
|
||||
// Set up the source positions
|
||||
glm::vec3 position = this->transform->getLocalPosition();
|
||||
glm::vec3 position = this->transform->getWorldPosition();
|
||||
alSource3f(this->source, AL_POSITION, position.x, position.y, position.z);
|
||||
alSource3f(this->source, AL_VELOCITY, 0, 0, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user