#include <movable.hpp>
Inheritance diagram for movable:
Public Methods | |
movable () | |
movable (string name) | |
virtual | ~movable () |
void | init () |
movable & | operator= (const movable &other) |
virtual void | draw () |
virtual void | update () |
void | move (int pitch, int turn, int roll, float x, float y, float z) |
void | setName (string name) |
virtual void | getBoundingBox () |
void | getAABB () |
void | drawAABB () |
void | drawBoundingBox () |
Public Attributes | |
float | mass |
physical constants. | |
matrix9f | Ibody |
moment of inertia tensor. | |
matrix9f | IbodyInv |
inverse of moi tensor. | |
matrix16f | location |
state variable. | |
matrix16f | newLocation |
state variable. | |
vector3f | P |
momentum. | |
vector3f | newP |
momentum. | |
vector3f | L |
angular momentum. | |
vector3f | newL |
angular momentum. | |
matrix9f | Iinv |
vector3f | velocity |
velocity of center of mass. | |
vector3f | omega |
w angular velocity. | |
vector3f | force |
summed forces per timestep. | |
vector3f | torque |
summed torque per timestep. | |
bool | normalize |
float | step |
string | name |
bool | drawBB |
bool | BBtested |
bool | BBcollided |
vector3f | centerBB |
vector3f | edgesBB |
vector3f | boundingBox [8] |
vector3f | oldCenterAABB |
vector3f | centerAABB |
vector3f | edgesAABB |
vector3f | AABB [8] |
bool | physical |
It holds a lot of physical information that would be better off in a subclass where it would make sense, as lights and camera don't really need such properties.