Skip to content

Commit

Permalink
Optimize default values for AkPortal's box shape
Browse files Browse the repository at this point in the history
Previously, a default box shape (1, 1, 1) was displayed.
  • Loading branch information
alessandrofama committed Aug 29, 2023
1 parent ed4717e commit 77ce917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/Wwise/native/src/scene/ak_portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 77ce917

Please sign in to comment.