#include <SimulatedInstance.h>
Inheritance diagram for Teddy::SpaceGame::SimulatedInstance:
Public Methods | |
SimulatedInstance (const char *name, Mesh *mesh=NULL) | |
Constructor. More... | |
virtual | ~SimulatedInstance () |
Destructor. More... | |
virtual void | tick () |
Simulate one tick. More... | |
Public Attributes | |
DoubleVector | tick_translation |
direction, speed. More... | |
DoubleVector | tick_translation_delta |
acceleration. More... | |
Quaternion | tick_rotation |
world rotation. More... | |
Quaternion | tick_rotation_delta |
world angular acceleration. More... | |
Vector | tick_local_rotation |
local rotation. More... | |
Vector | tick_local_rotation_delta |
locla angular acceleration. More... |
Definition at line 41 of file SimulatedInstance.h.
|
Constructor.
Definition at line 33 of file SimulatedInstance.cpp. Referenced by Teddy::SpaceGame::Ship::trackTarget(). |
|
Destructor.
Definition at line 47 of file SimulatedInstance.cpp. |
|
Simulate one tick.
Reimplemented from Teddy::SpaceGame::Simulated. Reimplemented in Teddy::SpaceGame::CollisionInstance, and Teddy::SpaceGame::Ship. Definition at line 51 of file SimulatedInstance.cpp. References Teddy::SpaceGame::Simulated::lock(), tick_local_rotation, tick_local_rotation_delta, tick_rotation, tick_rotation_delta, tick_translation, tick_translation_delta, and Teddy::SpaceGame::Simulated::unlock(). |
|
local rotation.
Definition at line 55 of file SimulatedInstance.h. Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |
|
locla angular acceleration.
Definition at line 56 of file SimulatedInstance.h. Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |
|
world rotation.
Definition at line 53 of file SimulatedInstance.h. Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |
|
world angular acceleration.
Definition at line 54 of file SimulatedInstance.h. Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |
|
direction, speed.
Definition at line 51 of file SimulatedInstance.h. Referenced by Teddy::SpaceGame::CollisionInstance::applyCollision(), Teddy::SpaceGame::Ship::applyControls(), Teddy::SpaceGame::Ship::collide(), tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |
|
acceleration.
Definition at line 52 of file SimulatedInstance.h. Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick(). |