Microsoft DirectX 9.0 SDK Update (October 2004)

Listener3DSettings.Velocity Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves and sets the listener's velocity.

Definition

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);

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 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center