Main Page   Class Hierarchy   Compound List   File List   Compound Members  

movable Class Reference

Mostly virtual class for any entity in the scene. More...

#include <movable.hpp>

Inheritance diagram for movable:

camera light objloader rigid List of all members.

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

Detailed Description

Mostly virtual class for any entity in the scene.

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.


The documentation for this class was generated from the following files:
Generated on Sat May 10 10:09:37 2003 for volume-src-limited by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002