Fix wrong AABB in range analysis debug tool

master
Marc Gilleron 2021-03-17 18:05:54 +00:00
parent 862e036317
commit 0720618295
1 changed files with 3 additions and 3 deletions

View File

@ -97,9 +97,9 @@ public:
}
AABB get_aabb() const {
return AABB(
Vector3(pos_x_spinbox->get_value(), pos_y_spinbox->get_value(), pos_z_spinbox->get_value()),
Vector3(size_x_spinbox->get_value(), size_y_spinbox->get_value(), size_z_spinbox->get_value()));
const Vector3 center(pos_x_spinbox->get_value(), pos_y_spinbox->get_value(), pos_z_spinbox->get_value());
const Vector3 size(size_x_spinbox->get_value(), size_y_spinbox->get_value(), size_z_spinbox->get_value());
return AABB(center - 0.5f * size, size);
}
bool is_analysis_enabled() const {