]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Skeleton.cpp
made convenience functions inlineable to avoid performance hit
[lugaru.git] / Source / Skeleton.cpp
index c8207a0ea8066f9b8c8689c475cc3bba1b34c4db..115b1ccbf7006a34343f9be1fd08d814cfc1b808 100644 (file)
@@ -45,22 +45,6 @@ extern int whichjointendarray[26];
 
 extern bool visibleloading;
 
-/* convenience functions
- */
-Joint& Skeleton::joint(int bodypart)
-{
-    return joints[jointlabels[bodypart]];
-}
-XYZ& Skeleton::jointPos(int bodypart)
-{
-    return joint(bodypart).position;
-}
-XYZ& Skeleton::jointVel(int bodypart)
-{
-    return joint(bodypart).velocity;
-}
-
-
 /* EFFECT
  */
 void dealloc2(void* param)
@@ -1360,24 +1344,24 @@ Skeleton::Skeleton()
     selected = 0;
 
     memset(forwardjoints, 0, sizeof(forwardjoints));
-    //         XYZ forward;
+    // XYZ forward;
 
     id = 0;
 
     memset(lowforwardjoints, 0, sizeof(lowforwardjoints));
-    //         XYZ lowforward;
+    // XYZ lowforward;
 
-    //         XYZ specialforward[5];
+    // XYZ specialforward[5];
     memset(jointlabels, 0, sizeof(jointlabels));
 
-    //         Model model[7];
-    //         Model modellow;
-    //         Model modelclothes;
+    // Model model[7];
+    // Model modellow;
+    // Model modelclothes;
     num_models = 0;
 
-    //         Model drawmodel;
-    //         Model drawmodellow;
-    //         Model drawmodelclothes;
+    // Model drawmodel;
+    // Model drawmodellow;
+    // Model drawmodelclothes;
 
     clothes = 0;
     spinny = 0;