Microsoft DirectX 9.0 SDK Update (October 2004)

Buffer3D.Velocity Property

Language:

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

Retrieves or sets the velocity of the sound source.

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 . A Vector3 object that specifies the coordinates of the sound source's velocity vector, in meters per second by default.

This property is read/write. 

Remarks

Velocity is used for Doppler effects only. It does not actually move the buffer.

The default unit of measurement is meters, but this can be changed by using the Listener3D.DistanceFactor property.

Exceptions
ArgumentException Leave Site An invalid parameter was passed to the called method.


© 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