AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aire::BoundingVolume Class Reference

#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< BoundingBoxboxes
 The bounding boxes.
 

Detailed Description

A class for defining a bounding volume of a set size that is divided into bounding boxes

Constructor & Destructor Documentation

◆ BoundingVolume()

BoundingVolume::BoundingVolume ( glm::vec3 startPosition,
glm::vec2 size,
int boxNum )

Constructor to create a bounding volume

Parameters
startPositionPosition of the bounding volume
sizeSize of the bounding volume
boxNumNumber of boxes to be generated along the width of the volume

Member Function Documentation

◆ update()

void BoundingVolume::update ( Rigidbody * rb)

Updates all bounding boxes with their current primitives

Parameters
rbRigid body
Here is the caller graph for this function:

The documentation for this class was generated from the following files: