diff options
Diffstat (limited to 'src/Skeleton.h')
-rw-r--r-- | src/Skeleton.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/Skeleton.h b/src/Skeleton.h index 9730665..7b5be13 100644 --- a/src/Skeleton.h +++ b/src/Skeleton.h @@ -2,7 +2,7 @@ #define _SKELETON_H_ /**> HEADER FILES <**/ -#ifdef OS9 +#ifdef OS9 #include <gl.h> #include "alut.h" #else @@ -24,7 +24,7 @@ //right shoulder, right elbow, right wrist, right hand, //middle, left hip, right hip,groin //left knee,left ankle, left foot, right knee, right ankle, right foort - + #define head 1 #define neck 2 #define leftshoulder 3 @@ -67,7 +67,7 @@ class Joint int label; int hasgun; float rotate1,rotate2,rotate3; - + void DoConstraint(); }; @@ -84,7 +84,7 @@ class Muscle bool visible; void DoConstraint(int broken); float rotate1,rotate2,rotate3; - + float strength; }; @@ -108,34 +108,33 @@ class Animation void Load(char *fileName,float rotate); }; - class Skeleton { public: int num_joints; Joint joints[max_joints]; int jointlabels[max_joints]; - + int num_muscles; Muscle muscles[max_muscles]; - + int selected; - + int forwardjoints[3]; XYZ forward; - + int lowforwardjoints[3]; XYZ lowforward; - + int broken; bool offset; - + XYZ specialforward[5]; - + bool free; - + Files files; - + void DoConstraints(); void DoConstraints(Model *collide, XYZ *move, float rotation); void DoGravity(); @@ -153,4 +152,3 @@ class Skeleton }; #endif - |