ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.27k stars 158 forks source link

Fix the GetVertices method for a terrain #279

Closed Neliott closed 11 months ago

Neliott commented 11 months ago

When exporting active scene, local to world space convertion was applied twice inside the 'GetVertices' method of the SteamAudioManager for a terrain. This problem only arises if the terrain position is not at 0,0,0, as applying the terrain position in two places makes no difference.

The first time, the terrain position is added (which has been removed in this PR) and the second time the 'terrain.transform.TransformPoint' method is used a few lines down.