 |
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));
70 DrawBoundingBox(*
this, color);
78 return CheckCollisionBoxes(*
this, box2);
85 return CheckCollisionBoxSphere(*
this, center, radius);
92 return CheckCollisionRayBox(ray, *
this);
96 inline void set(const ::BoundingBox& box) {
103 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
Provides all the classes associated with raylib-cpp.
BoundingBox & operator=(const BoundingBox &box)
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)