This method plays a WAV file from the 3D location of the object
<node3d>.playsound( | |
filename | |
flag = viz.PLAY | |
node = '' | |
) |
Playsound Modes | |
viz.LOOP | Play the sound from beginning to end continuously. |
viz.STOP | Stop a playing sound. |
viz.PLAY | Continue playing a stopped or paused sound. |
viz.PAUSE | Pause a playing sound. |
Note: The coordinates used in generating the 3D sound effects are based on the location of the child object and not the location of actual geometry within the object. To get correct results, it is best to model the object centered about the origin so that the coordinates system of the child object and the geometry coincide.