#1
|
|||
|
|||
Attaching sound to a moving object
I am working on figuring out the more complex sound properties and functions in pySonic. I am trying to get a helicopter-style test script to work (where the sound source circles the listener). I can have a sound play successfully if I move the object--a duck--or if I move the viewpoint relative to the duck, but if I use this code:
Code:
duck.center(0,0,radius) duck.translate(0,0,-radius) duck.addAction(vizact.spin(0,1,0,45)) #duck.playsound('quack.wav',viz.LOOP) sound.LoopMode = pySonic.Constants.FSOUND_LOOP_NORMAL sound.Play() If I output the duck's position, it does not change, so this is really why the sound doesn't update. So I guess my real question is, how do I get the duck's position during this action?
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
moving and object by mouse but don't know how to stop the movement | nlfrnassimi | Vizard | 8 | 04-26-2009 08:23 AM |
Moving avatars lips with sound | dan12345 | Vizard | 5 | 01-29-2008 08:32 PM |
sound problem | alaa | Vizard | 7 | 09-02-2005 02:13 PM |
Moving view with object | Xliben | Vizard | 2 | 07-25-2005 06:36 PM |