Sly Engine
|
#include <CollisionVolumeOBB.h>
Public Member Functions | |
CollisionVolumeOBB ()=default | |
CollisionVolumeOBB (const CollisionVolumeOBB &)=delete | |
CollisionVolumeOBB (CollisionVolumeOBB &&)=delete | |
CollisionVolumeOBB & | operator= (const CollisionVolumeOBB &)=delete |
CollisionVolumeOBB & | operator= (CollisionVolumeOBB &&)=delete |
virtual | ~CollisionVolumeOBB ()=default |
CollisionVolumeOBB (Model *pModel) | |
Specialized constructor for storing the max, min, and center. More... | |
virtual void | DebugView (const Vect &col) const override |
Call to visualize the OBB from a generic collision volume with the specified color. More... | |
virtual void | ComputeData (Model *pModel, const Matrix &mat) override |
Calculates the data that is required to compute the OBB's location. More... | |
virtual bool | IntersectAccept (const CollisionVolume &otherVolume) const override |
Intersect acceptance for the first dispatch of Collision with an OBB. More... | |
virtual bool | IntersectVisit (const CollisionVolumeBSphere &other) const override |
Intersect visit for a second dispatch of BSphere. More... | |
virtual bool | IntersectVisit (const CollisionVolumeAABB &other) const override |
Intersect visit for a second dispatch of AABB. More... | |
virtual bool | IntersectVisit (const CollisionVolumeOBB &other) const override |
Intersect visit for a second dispatch of OBB. More... | |
Vect | GetCenter () const |
Gets the center of the OBB. More... | |
Vect | GetMin () const |
Gets the minimum corner of the OBB. More... | |
Vect | GetMax () const |
Gets the maximum corner of the OBB. More... | |
Matrix | GetWorld () const |
Gets the world matrix stored in the OBB. More... | |
Matrix | GetOriginalWorld () const |
Vect | GetHalfDiagonal () const |
Gets half diagonal. More... | |
float | GetScale () const |
Gets the stored scale. More... | |
Public Member Functions inherited from CollisionVolume | |
CollisionVolume ()=default | |
Default constructor. More... | |
CollisionVolume (const CollisionVolume &)=delete | |
Copy constructor. More... | |
CollisionVolume (CollisionVolume &&)=delete | |
Move constructor. More... | |
CollisionVolume & | operator= (const CollisionVolume &)=default |
Assignment operator. More... | |
CollisionVolume & | operator= (CollisionVolume &&)=delete |
Move assignment operator. More... | |
virtual | ~CollisionVolume ()=default |
Deconstructor. More... | |
Private Attributes | |
Matrix | world |
Matrix | originalWorld |
Vect | center |
Vect | minCorner |
Vect | maxCorner |
Vect | halfDiagonal |
float | scaleSquared |
|
default |
|
delete |
|
delete |
|
virtualdefault |
CollisionVolumeOBB::CollisionVolumeOBB | ( | Model * | pModel | ) |
Specialized constructor for storing the max, min, and center.
[in,out] | pModel | If non-null, the model. |
|
overridevirtual |
Calculates the data that is required to compute the OBB's location.
[in,out] | pModel | If non-null, the model. |
mat | The world matrix. |
Implements CollisionVolume.
|
overridevirtual |
Call to visualize the OBB from a generic collision volume with the specified color.
col | The color. |
Implements CollisionVolume.
Vect CollisionVolumeOBB::GetCenter | ( | ) | const |
Gets the center of the OBB.
Vect CollisionVolumeOBB::GetHalfDiagonal | ( | ) | const |
Gets half diagonal.
Vect CollisionVolumeOBB::GetMax | ( | ) | const |
Gets the maximum corner of the OBB.
Vect CollisionVolumeOBB::GetMin | ( | ) | const |
Gets the minimum corner of the OBB.
Matrix CollisionVolumeOBB::GetOriginalWorld | ( | ) | const |
float CollisionVolumeOBB::GetScale | ( | ) | const |
Gets the stored scale.
Matrix CollisionVolumeOBB::GetWorld | ( | ) | const |
Gets the world matrix stored in the OBB.
|
overridevirtual |
Intersect acceptance for the first dispatch of Collision with an OBB.
otherVolume | The other volume (type not known, second dispatch required). |
Implements CollisionVolume.
|
overridevirtual |
Intersect visit for a second dispatch of AABB.
other | The other collision volume. |
Implements CollisionVolume.
|
overridevirtual |
Intersect visit for a second dispatch of BSphere.
other | The other collision volume. |
Implements CollisionVolume.
|
overridevirtual |
Intersect visit for a second dispatch of OBB.
other | The other collision volume. |
Implements CollisionVolume.
|
delete |
|
delete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |