![]() |
AireEngine
A 3D Open-World Game Engine
|
#include <boundingVolume.h>
Public Member Functions | |
| BoundingVolume (glm::vec3 startPosition, glm::vec2 size, int boxNum) | |
| void | update (Rigidbody *rb) |
Public Attributes | |
| int | volumeWidth |
| Width of the bounding volume. | |
| std::vector< BoundingBox > | boxes |
| The bounding boxes. | |
A class for defining a bounding volume of a set size that is divided into bounding boxes
| BoundingVolume::BoundingVolume | ( | glm::vec3 | startPosition, |
| glm::vec2 | size, | ||
| int | boxNum ) |
Constructor to create a bounding volume
| startPosition | Position of the bounding volume |
| size | Size of the bounding volume |
| boxNum | Number of boxes to be generated along the width of the volume |
Updates all bounding boxes with their current primitives
| rb | Rigid body |
