Vizard 8 » Command Index » Vizard objects » multimedia » <multimedia:sound3D>.velocity
8.0

<multimedia:sound3D>.velocity

Sets the velocity of the sound for doppler effects

<multimedia:sound3D>.velocity()  

Remarks

This command simulates a dopper effect. A velocity vector pointing toward the viewpoint increases the sound frequency. If the velocity vector is pointing away, the frequency decreases.

Return Value

None

Example

ball = viz.add('ball.wrl')
sound = ball.playsound('arrgh.wav',viz.LOOP)
sound.velocity( ball.getVelocity() )