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