1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#ifndef BIPED_DEF_H
#define BIPED_DEF_H
#include "Box2D.h"
class BipedDef
{
public:
BipedDef();
~BipedDef(void);
void SetMotorTorque(float);
void SetMotorSpeed(float);
void SetDensity(float);
void SetFriction(float);
void SetRestitution(float);
void SetLinearDamping(float);
void SetAngularDamping(float);
void EnableLimit();
void DisableLimit();
void SetLimit(bool);
void EnableMotor();
void DisableMotor();
void SetMotor(bool);
void SetGroupIndex(int16);
void SetPosition(float, float);
void SetPosition(b2Vec2);
void IsFast(bool);
static int16 count;
b2BodyDef LFootDef, RFootDef, LCalfDef, RCalfDef, LThighDef, RThighDef,
PelvisDef, StomachDef, ChestDef, NeckDef, HeadDef,
LUpperArmDef, RUpperArmDef, LForearmDef, RForearmDef, LHandDef, RHandDef;
b2PolygonDef LFootPoly, RFootPoly, LCalfPoly, RCalfPoly, LThighPoly, RThighPoly,
PelvisPoly, StomachPoly, ChestPoly, NeckPoly,
LUpperArmPoly, RUpperArmPoly, LForearmPoly, RForearmPoly, LHandPoly, RHandPoly;
b2CircleDef HeadCirc;
b2RevoluteJointDef LAnkleDef, RAnkleDef, LKneeDef, RKneeDef, LHipDef, RHipDef,
LowerAbsDef, UpperAbsDef, LowerNeckDef, UpperNeckDef,
LShoulderDef, RShoulderDef, LElbowDef, RElbowDef, LWristDef, RWristDef;
void DefaultVertices();
void DefaultPositions();
void DefaultJoints();
};
#endif
|