A class that handles the bounding box component.
More...
#include <BoundingBoxComponent.h>
|
std::string | id |
| The ID of the component type. More...
|
|
A class that handles the bounding box component.
◆ ~BoundingBoxComponent()
BoundingBoxComponent::~BoundingBoxComponent |
( |
| ) |
|
|
virtual |
◆ getBoundingBoxDimensions()
Vec3 BoundingBoxComponent::getBoundingBoxDimensions |
( |
| ) |
|
|
inline |
A function to return the dimensions of the bounding box.
- Returns
- The dimensions of the bounding box.
◆ getNextPos()
Vec3 BoundingBoxComponent::getNextPos |
( |
| ) |
|
|
inline |
A function to get the position of the box for the next loop for use with collision.
- Returns
- The position of the box next loop.
◆ initaliseBoundingBox()
void BoundingBoxComponent::initaliseBoundingBox |
( |
std::string |
meshID | ) |
|
A function to initalise the bounding box from a mesh.
- Parameters
-
meshID | The ID of the mesh. |
◆ onAwake()
void BoundingBoxComponent::onAwake |
( |
| ) |
|
|
virtual |
A virtual function for the componets awake.
Reimplemented from Component.
◆ onDestroy()
void BoundingBoxComponent::onDestroy |
( |
| ) |
|
|
virtual |
A virtual function for the componets destroy.
Reimplemented from Component.
◆ scaleBoundingBox()
void BoundingBoxComponent::scaleBoundingBox |
( |
Vec3 |
scale | ) |
|
|
inline |
A function to scale the bounding box.
- Parameters
-
◆ setNextPos()
void BoundingBoxComponent::setNextPos |
( |
Vec3 |
inNextPos | ) |
|
|
inline |
A function to set the position of the box for the next loop for use with collision.
- Parameters
-
inNextPos | The position of the box next loop. |
◆ boxDim
Vec3 BoundingBoxComponent::boxDim |
|
private |
The dimensions of the bouncing box.
◆ initialBoxDim
Vec3 BoundingBoxComponent::initialBoxDim |
|
private |
The initial dimensions of the bouncing box.
◆ nextPos
Vec3 BoundingBoxComponent::nextPos |
|
private |
The position in the next loop.
The documentation for this class was generated from the following files: