Added Box2D

This commit is contained in:
Julian Nießner
2018-05-06 12:43:20 +02:00
parent cb5469bb89
commit d175d433a8
351 changed files with 123545 additions and 1 deletions

View File

@@ -0,0 +1,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