View Single Post
  #1  
Old 06-08-2010, 12:04 PM
llqqff llqqff is offline
Member
 
Join Date: May 2009
Posts: 25
Creating the sound effect

Hi,
I am working on how to play the sound in vizard that can change the volume when the distance of two objects changes which means: I have a target in some position and I move my right hand, when my hand is moving closer to the target, the volume of the sound increases, otherwise decreases.

I know the target.playsound() function, which can calculate the distance between the target and the two LEDs, then play the spatialized sound automatically.

And now I know how to calculate the distance between the target and the hand, but I don't know how the change the volume when the distance changes.
Reply With Quote