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,25 @@
#ifndef BIPED_H
#define BIPED_H
#include "Box2D.h"
// Ragdoll class thanks to darkzerox.
class Biped
{
public:
Biped(b2World*, const b2Vec2& position);
~Biped();
private:
b2World* m_world;
b2Body *LFoot, *RFoot, *LCalf, *RCalf, *LThigh, *RThigh,
*Pelvis, *Stomach, *Chest, *Neck, *Head,
*LUpperArm, *RUpperArm, *LForearm, *RForearm, *LHand, *RHand;
b2RevoluteJoint *LAnkle, *RAnkle, *LKnee, *RKnee, *LHip, *RHip,
*LowerAbs, *UpperAbs, *LowerNeck, *UpperNeck,
*LShoulder, *RShoulder, *LElbow, *RElbow, *LWrist, *RWrist;
};
#endif