16 #include <glm/glm.hpp> 29 void loadFromFile(std::string fileLocation);
75 bool collidesWith(
const glm::vec3 point,
const glm::vec3 thisOffset,
76 const glm::vec3 thisRotation)
const;
90 const glm::vec3 thisOffset,
91 const glm::vec3 thisRotation,
92 const glm::vec3 otherOffset,
93 const glm::vec3 otherRotation)
const;
BoundingBoxSet(const std::string fileLocation="")
Constructor.
Definition: BoundingBoxSet.cpp:29
bool collidesWith(const glm::vec3 point, const glm::vec3 thisOffset, const glm::vec3 thisRotation) const
Check if a point collides (or is inside) any of the boxes of the box set, assuming that they are in a...
Definition: BoundingBoxSet.cpp:154
std::vector< std::vector< float > > vertices
Vertex coordinates read from Wavefront .obj file.
Definition: BoundingBoxSet.hpp:57
int getNumBoxes() const
Get the number of boxes contained in the set.
Definition: BoundingBoxSet.cpp:264
Header of the Logger class.
~BoundingBoxSet()=default
Destructor.
Set of bounding boxes for a SceneObject, loaded from a Wavefront file, allowing for collision detecti...
Definition: BoundingBoxSet.hpp:26
std::vector< std::vector< unsigned int > > facesVertexIndexes
Faces vertex indexes read from Wavefront .obj file.
Definition: BoundingBoxSet.hpp:63