Updated AudioEmitter (markdown)

Chuck Walbourn 2022-04-28 10:25:46 -07:00
Родитель 62a98961c1
Коммит 54edbe9ba9
1 изменённых файлов: 1 добавлений и 1 удалений

@ -30,7 +30,7 @@ In addition to setting the members of ``X3DAUDIO_EMITTER`` directly, these helpe
* **SetOrientation** (XMVECTOR forward, XMVECTOR up) or (XMFLOAT3 forward, XMFLOAT3 up)
* **SetOrientationFromQuaternion** (XMVECTOR): Sets the OrientFront/OrientTop of the emitter.
* **Update** (XMVECTOR newPos, XMVECTOR upDir, float dt): Computes a direction and velocity for the emitter based on the existing Position, the newPos, and the provided delta time (i.e. Δt). This updates the OrientFront/OrientTop to match, and then sets the Position to the newPos. If dt is 0, the update is skipped.
* **Update** (XMVECTOR newPos, XMVECTOR upDir, float dt): Computes a direction and velocity for the emitter based on the current Position value, the new position, and the provided delta time (i.e. Δt). This updates the OrientFront/OrientTop to match, and then sets the Position to the new position. If dt is 0, the update is skipped.
> You must use a distinct instance of ``AudioEmitter`` for each active 3D sound if using the **Update** method. Otherwise, if you reuse the emitter instance for multiple sounds you need to explicitly initialize both the position and velocity before each ``Apply3D`` call.