CollisionVolume type for BSphere volumes. More...
#include <CollisionVolumeBSphere.h>
Detailed Description
CollisionVolume type for BSphere volumes.
Public Member Functions | |
| const Vect & | GetCenter () const |
| Gets the center point of the BSphere in world space. More... | |
| const Matrix & | GetWorld () const |
| Gets the world matrix of the BSphere. More... | |
| float | GetRadius () const |
| Gets the radius of the BSphere. More... | |
| float | GetScale () const |
| Gets the scale of the BSphere matrix. More... | |
| Vect | GetMin () const |
| Gets the min corner point of the BSphere in world space. More... | |
| Vect | GetMax () const |
| Gets the min corner point of the BSphere in world space. More... | |
| virtual void | ComputeData (Model &mod, Matrix &mat) |
| Function to update CollisionVolume data based off of a Model and a world Matrix. More... | |
| virtual bool | Intersect (const CollisionVolume &col) const |
| Function to detect intersection with another CollisionVolume. More... | |
| virtual bool | Intersect (const CollisionVolumeBSphere &col) const |
| Function to detect intersection with another CollisionVolume. More... | |
| virtual bool | Intersect (const CollisionVolumeAABB &col) const |
| Function to detect intersection with another CollisionVolume. More... | |
| virtual bool | Intersect (const CollisionVolumeOBB &col) const |
| Function to detect intersection with another CollisionVolume. More... | |
Member Function Documentation
|
virtual |
Function to update CollisionVolume data based off of a Model and a world Matrix.
- Parameters
-
mod Model to base the CollisionVolume off of mat World Matrix to modify the CollisionVolume by
Implements CollisionVolume.
| const Vect& CollisionVolumeBSphere::GetCenter | ( | ) | const |
Gets the center point of the BSphere in world space.
- Returns
- Vect of Center point
| Vect CollisionVolumeBSphere::GetMax | ( | ) | const |
Gets the min corner point of the BSphere in world space.
This function is helpful for generating an AABB of the BSphere
- Returns
- Vect of min corner
| Vect CollisionVolumeBSphere::GetMin | ( | ) | const |
Gets the min corner point of the BSphere in world space.
This function is helpful for generating an AABB of the BSphere
- Returns
- Vect of min corner
| float CollisionVolumeBSphere::GetRadius | ( | ) | const |
Gets the radius of the BSphere.
- Returns
- float of radius
| float CollisionVolumeBSphere::GetScale | ( | ) | const |
Gets the scale of the BSphere matrix.
- Returns
- float of scale
| const Matrix& CollisionVolumeBSphere::GetWorld | ( | ) | const |
Gets the world matrix of the BSphere.
- Returns
- World Matrix
|
virtual |
Function to detect intersection with another CollisionVolume.
- Parameters
-
col a CollisionVolume reference to test collision on
- Returns
- True or False if the CollisionVolumes collide
Implements CollisionVolume.
|
virtual |
Function to detect intersection with another CollisionVolume.
- Parameters
-
col a CollisionVolume reference to test collision on
- Returns
- True or False if the CollisionVolumes collide
Implements CollisionVolume.
|
virtual |
Function to detect intersection with another CollisionVolume.
- Parameters
-
col a CollisionVolume reference to test collision on
- Returns
- True or False if the CollisionVolumes collide
Implements CollisionVolume.
|
virtual |
Function to detect intersection with another CollisionVolume.
- Parameters
-
col a CollisionVolume reference to test collision on
- Returns
- True or False if the CollisionVolumes collide
Implements CollisionVolume.

1.8.11