From 77ce91741917036dcd1fa36ea65ec20bbd6114d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Fam=C3=A0?= Date: Tue, 29 Aug 2023 20:23:05 +0200 Subject: [PATCH] Optimize default values for AkPortal's box shape Previously, a default box shape (1, 1, 1) was displayed. --- addons/Wwise/native/src/scene/ak_portal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/Wwise/native/src/scene/ak_portal.cpp b/addons/Wwise/native/src/scene/ak_portal.cpp index 07cd76a1..a0ac8606 100644 --- a/addons/Wwise/native/src/scene/ak_portal.cpp +++ b/addons/Wwise/native/src/scene/ak_portal.cpp @@ -25,9 +25,12 @@ void AkPortal::_enter_tree() { collision_shape = memnew(CollisionShape3D); box_shape = memnew(BoxShape3D); + collision_shape->set_name("Shape"); collision_shape->set_shape(box_shape); + box_shape->set_size(Vector3(0.9f, 2.0f, 0.3f)); add_child(collision_shape); + collision_shape->set_owner(get_tree()->get_edited_scene_root()); } }