![]() |
![]() |
![]() |
Listener3D.Velocity Property |
Language: |
Retrieves or 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 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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center