From 5ac8b2f98d09648200e0ffd8d36666e62d94b432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Fam=C3=A0?= Date: Thu, 19 Oct 2023 14:40:31 +0200 Subject: [PATCH] Fix inverted set_2d_position up vector Audio was previously flipped when using the camera 2d node in its default settings. --- addons/Wwise/native/src/wwise_gdextension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/Wwise/native/src/wwise_gdextension.cpp b/addons/Wwise/native/src/wwise_gdextension.cpp index 0e9295e9..ff9e8a19 100644 --- a/addons/Wwise/native/src/wwise_gdextension.cpp +++ b/addons/Wwise/native/src/wwise_gdextension.cpp @@ -404,7 +404,7 @@ bool Wwise::set_2d_position(const Object* game_object, const Transform2D& transf Vector3 position = Vector3(origin.x, origin.y, z_depth); Vector3 forward = Vector3(transform_2d.columns[1].x, 0.0f, transform_2d.columns[1].y).normalized(); - Vector3 up = Vector3(0, 1, 0); + Vector3 up = Vector3(0, -1, 0); AkVector ak_position{}; vector3_to_akvector(position, ak_position);