Bowls
|
Class that represents an Entity with Collision. More...
#include <CollisionEntity.h>
Public Member Functions | |
CollisionEntity (cgg::Mat43) | |
CollisionEntity (cgg::Mat43, cgg::Vec3) | |
CollisionEntity (cgg::Vec3) | |
CollisionEntity (cgg::Vec3, cgg::Vec3) | |
void | updateXVelocity (float) |
void | updateYVelocity (float) |
void | updateZVelocity (float) |
float | getXVelocity () |
float | getYVelocity () |
float | getZVelocity () |
Public Member Functions inherited from Entity | |
Entity (cgg::Mat43) | |
Entity (cgg::Mat43, cgg::Vec3) | |
Entity (cgg::Vec3) | |
Entity (cgg::Vec3, cgg::Vec3) | |
void | changePosition (cgg::Vec3) |
void | updatePosition (cgg::Vec3) |
cgg::Vec3 | getPosition () |
virtual void | render (gl::Primitives *)=0 |
void | updateColour (cgg::Vec3) |
Private Attributes | |
cgg::Vec3 | velocities |
cgg::Vec3 containing the velocities of the Entity. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Entity | |
cgg::Mat43 | transform |
cgg::Mat43 containing a transform (position,rotation,scale). More... | |
cgg::Vec3 | colour |
cgg::Vec3 containing a colour's r,g,b values. More... | |
Class that represents an Entity with Collision.
Class that contains an Entity with Collision, no class above this should have physics code.
Definition at line 16 of file CollisionEntity.h.
CollisionEntity::CollisionEntity | ( | cgg::Mat43 | ) |
PURE VIRTUAL Creates an Entity with Collision
PURE VIRTUAL Don't create this object
cgg::Mat43 | - The transformation matrix |
CollisionEntity::CollisionEntity | ( | cgg::Mat43 | , |
cgg::Vec3 | |||
) |
PURE VIRTUAL Creates an Entity with Collision
PURE VIRTUAL Don't create this object
cgg::Mat43 | - The transformation matrix |
cgg::Vec3 | - Contains the colour r,g,b values |
CollisionEntity::CollisionEntity | ( | cgg::Vec3 | ) |
PURE VIRTUAL Creates an Entity with Collision
PURE VIRTUAL Don't create this object
cgg::Vec3 | - Position |
CollisionEntity::CollisionEntity | ( | cgg::Vec3 | , |
cgg::Vec3 | |||
) |
PURE VIRTUAL Creates an Entity with Collision
PURE VIRTUAL Don't create this object
cgg::Vec3 | - Position |
cgg::Vec3 | - Contains the colour r,g,b values |
float CollisionEntity::getXVelocity | ( | ) |
Gets the velocity
Gets the x velocity
float CollisionEntity::getYVelocity | ( | ) |
Gets the velocity
Gets the y velocity
float CollisionEntity::getZVelocity | ( | ) |
Gets the velocity
Gets the z velocity
void CollisionEntity::updateXVelocity | ( | float | ) |
Change the velocity to the inputed value
The inputed floats are the new values of the x velocity
float | x velocity. |
void CollisionEntity::updateYVelocity | ( | float | ) |
Change the velocity to the inputed value
The inputed floats are the new values of the y velocity
float | y velocity. |
void CollisionEntity::updateZVelocity | ( | float | ) |
Change the velocity to the inputed value
The inputed floats are the new values of the z velocity
float | z velocity. |
|
private |
cgg::Vec3 containing the velocities of the Entity.
Definition at line 114 of file CollisionEntity.h.