![]() |
![]() |
![]() |
Listener3DSettings.Velocity Property |
Language: |
Retrieves and sets the listener's velocity.
Visual Basic .NET Public Property Velocity As Vector3 C# public Vector3 Velocity { get; set; } Managed C++ public: __property Vector3 get_Velocity();
public: __property void set_Velocity(Vector3);JScript .NET public function get Velocity() : Vector3
public function set Velocity(Vector3);
Microsoft.DirectX.Vector3 . The listener's velocity.
This property is read/write.
Velocity is used only for Doppler effects. It does not actually move the listener. To change the listener's position, use the Listener3DSettings.Position property. The default velocity is (0,0,0).
By default, measurement units are meters per second, but this can be changed by changing the Listener3DSettings.DistanceFactor property.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center