X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FMuscle.h;h=a286928673181ea30e4c8cc5f8ae0980597ff3fb;hb=3455f3a84eef6a73f39a4267da445c7998c3515e;hp=cb85f856f1fcc59d9ac64db76835d0f757d79f77;hpb=1d589bc3024e30dd51e41b6041b57649190bef4d;p=lugaru.git
diff --git a/Source/Animation/Muscle.h b/Source/Animation/Muscle.h
index cb85f85..a286928 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;
@@ -50,7 +48,9 @@ public:
float strength;
Muscle();
- ~Muscle();
+ void load(FILE* tfile, int vertexNum, std::vector& joints);
+ void loadVerticesLow(FILE* tfile, int vertexNum);
+ void loadVerticesClothes(FILE* tfile, int vertexNum);
void DoConstraint(bool spinny);
};