#include <CollisionInstance.h>
Inheritance diagram for Teddy::SpaceGame::CollisionInstance:
Public Methods | |
CollisionInstance (const char *name, Mesh *mesh=NULL) | |
Constructor. More... | |
virtual | ~CollisionInstance () |
Destructor. More... | |
void | setCollisionGroup (CollisionGroup *cg) |
Set CollisionGroup. More... | |
virtual bool | collisionCheck (CollisionInstance *mi) |
Generic collision check algorithm. More... | |
virtual void | applyCollision (CollisionInstance *mi) |
Generic collision apply routine. More... | |
virtual void | tick () |
Simulate one tick. More... | |
Public Attributes | |
CollisionGroup * | collision_group |
List to check collisions. More... |
Definition at line 40 of file CollisionInstance.h.
|
Constructor.
Definition at line 39 of file CollisionInstance.cpp. |
|
Destructor.
Definition at line 48 of file CollisionInstance.cpp. |
|
Generic collision apply routine.
Definition at line 88 of file CollisionInstance.cpp. References Teddy::SpaceGame::SimulatedInstance::tick_translation. Referenced by collisionCheck(). |
|
Generic collision check algorithm.
Reimplemented in Teddy::SpaceGame::RoamInstance. Definition at line 76 of file CollisionInstance.cpp. References applyCollision(). |
|
Set CollisionGroup.
Definition at line 70 of file CollisionInstance.cpp. References collision_group. |
|
|
List to check collisions.
Definition at line 55 of file CollisionInstance.h. Referenced by setCollisionGroup(), and tick(). |