This commit is contained in:
Philip Rosedale 2013-12-19 23:12:11 -08:00
parent f4a28850cf
commit b6ac73bb57

4
interface/src/avatar/Hand.cpp Executable file → Normal file
View file

@ -131,6 +131,10 @@ void Hand::simulateToyBall(PalmData& palm, const glm::vec3& fingerTipPosition, f
_ballParticleEditHandles[handID] = caughtParticle;
caughtParticle = NULL;
// Play a catch sound!
_catchInjector.setPosition(targetPosition);
// inject the catch sound to the mixer and play it locally
_catchInjector.injectViaThread(app->getAudio());
app->getAudio()->startDrumSound(1.0, 300, 0.75, 0.015);
}
}