00001 #ifndef _JOINT_H
00002 #define _JOINT_H
00003
00004 #include "DOF.h"
00005 #include "Joint.h"
00006 #include "math/vector3.h"
00007 #include "math/matrix34.h"
00008
00009 #include <vector>
00010 using namespace std;
00011
00012 class BallJoint {
00013 public:
00014 BallJoint() {}
00015
00016
00017
00018
00019
00020
00021
00022 ~BallJoint() {}
00023 void Update();
00024 void Draw();
00025 void AttachObject(BallJoint *newObject);
00026
00027 public:
00028 Matrix34 local, world, binding;
00029 BallJoint *parent;
00030 DOF x, y, z;
00031 DOF xBase, yBase, zBase;
00032
00033 vector<BallJoint *> childObjects;
00034 };
00035
00036 #endif //_JOINT_H