1 #ifndef RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
2 #define RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
4 #include "./raylib.hpp"
5 #include "./raylib-cpp-utils.hpp"
21 set(::GetMeshBoundingBox(mesh));
25 BoundingBox(::Vector3 min, ::Vector3 max) : ::BoundingBox{min, max} {}
39 DrawBoundingBox(*
this, color);
47 return CheckCollisionBoxes(*
this, box2);
54 return CheckCollisionBoxSphere(*
this, center, radius);
61 return GetRayCollisionBox(ray, *
this).hit;
68 return GetRayCollisionBox(ray, *
this);
72 inline void set(const ::BoundingBox& box) {
79 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_