#include <collidable.h>
Inherited by _classes_ [private]
, IdCollidable, and Obstacle.
Inheritance diagram for Collidable:
Public Types | |
typedef RefClass< Model, std::string > | ModelRef |
Public Methods | |
Collidable () | |
The default constructor. More... | |
Collidable (std::string filename, const Matrix &pos) | |
The constructor for Collidable that takes in a filename and a position. More... | |
void | collide (Collidable *oth) |
float | getRadius () const |
This is the maximum radius of the Collidable . More... | |
VectorHash | getVectorHash () const |
Returns the hash of its Vector . More... | |
const QVector & | getPosition () const |
Returns the position of the Collidable . More... | |
QVector | getMin () const |
QVector | getMax () const |
Public Attributes | |
std::string | name |
ModelRef | model |
This is the Model (using the above typedef) that this object uses to draw or collide. More... | |
Matrix | pos |
This is the object's position and direction. More... |
This class contains a RefClass of a Model or class with a mesh and a Texture . Another item in this class is a Matrix that gives direction and position for drawing.
|
|
|
The default constructor.
00019 {} |
|
The constructor for Collidable that takes in a filename and a position.
|
|
00070 { 00071 printf("ERROR"); 00072 } |
|
|
|
|
|
Returns the position of the Collidable .
|
|
This is the maximum radius of the Collidable .
|
|
Returns the hash of its Vector .
|
|
This is the Model (using the above typedef) that this object uses to draw or collide.
|
|
|
|
This is the object's position and direction.
|