X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FMuscle.h;h=5f51161af3926f9895732be2bb1f8c0711ba618c;hb=18e718d3ff51c67029f2d4e1416f979b9ad3afc0;hp=cb85f856f1fcc59d9ac64db76835d0f757d79f77;hpb=1d589bc3024e30dd51e41b6041b57649190bef4d;p=lugaru.git
diff --git a/Source/Animation/Muscle.h b/Source/Animation/Muscle.h
index cb85f85..5f51161 100644
--- a/Source/Animation/Muscle.h
+++ b/Source/Animation/Muscle.h
@@ -21,6 +21,7 @@ along with Lugaru. If not, see .
#ifndef _MUSCLE_H_
#define _MUSCLE_H_
+#include
#include "Animation/Joint.h"
enum muscle_type {boneconnect, constraint, muscle};
@@ -28,12 +29,9 @@ enum muscle_type {boneconnect, constraint, muscle};
class Muscle
{
public:
- int numvertices;
- int* vertices;
- int numverticeslow;
- int* verticeslow;
- int numverticesclothes;
- int* verticesclothes;
+ std::vector vertices;
+ std::vector verticeslow;
+ std::vector verticesclothes;
float length;
float targetlength;
Joint* parent1;
@@ -51,6 +49,9 @@ public:
Muscle();
~Muscle();
+ void load(FILE* tfile, int vertexNum, Joint* joints);
+ void loadVerticesLow(FILE* tfile, int vertexNum);
+ void loadVerticesClothes(FILE* tfile, int vertexNum);
void DoConstraint(bool spinny);
};