Listener3D.Velocity Property (Microsoft.DirectX.DirectSound)

Retrieves or sets the listener's velocity.

Definition

Visual Basic Public Property Velocity As Vector3
C# public Vector3 Velocity { get; set; }
C++ public:
property Vector3 Velocity {
        Vector3 get();
        void set(Vector3 value);
}
JScript public function get Velocity() : Vector3
public function set Velocity(Vector3);

Property Value

Microsoft.DirectX.Vector3
The listener's velocity.

This property is read/write. 

Remarks

Velocity is used only for Doppler effects. It does not actually move the listener. To change the listener's position, use the Listener3D.Position property. The default velocity is (0,0,0).

By default, measurement units are meters per second. This can be changed using the Listener3D.DistanceFactor property.