This commit is contained in:
Nishi 2026-05-28 14:29:58 +09:00
commit 3a5d0bb9f4

View file

@ -43,7 +43,7 @@ void fishbone::Mixer::read(short* buffer, size_t frames) {
float d;
float lf, rf;
for(int j = 0; j < 3; j++) r[j] = this->sounds[i]->position[j] - this->position[j];
for(int j = 0; j < 3; j++) r[j] = this->position[i] - this->sounds[i]->position[j];
angle = atan2(r[2], r[0]);
v = cos(angle);