 |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
25 #ifndef RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
26 #define RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
28 #include "./raylib.hpp"
29 #include "./raylib-cpp-utils.hpp"
45 set(::MeshBoundingBox(mesh));
65 DrawBoundingBox(*
this, color);
73 return CheckCollisionBoxes(*
this, box2);
80 return CheckCollisionBoxSphere(*
this, center, radius);
87 return CheckCollisionRayBox(ray, *
this);
91 inline void set(const ::BoundingBox& box) {
98 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
Provides all the classes associated with raylib-cpp.
BoundingBox(const ::Mesh &mesh)
Compute mesh bounding box limits.
BoundingBox & Draw(::Color color={255, 255, 255, 255})
Draw a bounding box with wires.
void set(const ::BoundingBox &box)
bool CheckCollision(::Vector3 center, float radius) const
Detect collision between box and sphere.
bool CheckCollision(const ::BoundingBox &box2) const
Detect collision between two boxes.
BoundingBox(::Vector3 Min, ::Vector3 Max)
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
BoundingBox(const ::BoundingBox &box)