plumb URDF/SDF audio_source into PhysicsServerCommandProcessor, allow to play sounds on collision !
See also https://youtu.be/eppOjTfx5Jg for a first test, and this modified URDF how to add sounds: https://github.com/bulletphysics/bullet3/blob/master/data/plane_with_collision_audio.urdf Add the --audio flag to enable sound in pybullet/Bullet-C-API
This commit is contained in:
@@ -16,6 +16,7 @@ struct b3SoundMessage
|
||||
double m_decayRate;
|
||||
double m_sustainLevel;
|
||||
double m_releaseRate;
|
||||
bool m_autoKeyOff;
|
||||
|
||||
b3SoundMessage()
|
||||
:m_type(B3_SOUND_SOURCE_SINE_OSCILLATOR),
|
||||
@@ -25,7 +26,8 @@ struct b3SoundMessage
|
||||
m_attackRate(0.001),
|
||||
m_decayRate(0.00001),
|
||||
m_sustainLevel(0.5),
|
||||
m_releaseRate(0.0005)
|
||||
m_releaseRate(0.0005),
|
||||
m_autoKeyOff(false)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user