add velocity doc to emitter/listener
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3c2e5b81d7
commit
7f53dbec7a
|
@ -61,10 +61,12 @@ var audioListener = new AudioListener(AudioDevice);
|
||||||
audioEmitter.Position = thingPosition;
|
audioEmitter.Position = thingPosition;
|
||||||
audioEmitter.Forward = thingForward;
|
audioEmitter.Forward = thingForward;
|
||||||
audioEmitter.Up = thingUp;
|
audioEmitter.Up = thingUp;
|
||||||
|
audioEmitter.Velocity = thingVelocity;
|
||||||
|
|
||||||
audioListener.Position = cameraPosition;
|
audioListener.Position = cameraPosition;
|
||||||
audioListener.Forward = cameraForward;
|
audioListener.Forward = cameraForward;
|
||||||
audioListener.Up = cameraUp;
|
audioListener.Up = cameraUp;
|
||||||
|
audioListener.Velocity = cameraVelocity;
|
||||||
|
|
||||||
thingSound.Apply3D(audioListener, audioEmitter);
|
thingSound.Apply3D(audioListener, audioEmitter);
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue