Skip to content

Commit 58d7302

Browse files
authored
Merge pull request #2063 from aaronfranke/aabb-construct
Add missing AABB constructor with 6 `real_t` values
2 parents ed19179 + 60e16b4 commit 58d7302

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎include/godot_cpp/variant/aabb.hpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ struct [[nodiscard]] AABB {
140140
position(p_pos),
141141
size(p_size) {
142142
}
143+
constexpr AABB(real_t p_pos_x, real_t p_pos_y, real_t p_pos_z, real_t p_size_x, real_t p_size_y, real_t p_size_z) :
144+
position(p_pos_x, p_pos_y, p_pos_z),
145+
size(p_size_x, p_size_y, p_size_z) {
146+
}
143147
};
144148

145149
inline bool AABB::intersects(const AABB &p_aabb) const {

0 commit comments

Comments
 (0)