Biped.h
上传用户:gb3593
上传日期:2022-01-07
资源大小:3028k
文件大小:1k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. #ifndef BIPED_H
  2. #define BIPED_H
  3. #include "Box2D.h"
  4. // Ragdoll class thanks to darkzerox.
  5. class Biped
  6. {
  7. public:
  8. Biped(b2World*, const b2Vec2& position);
  9. ~Biped();
  10. private:
  11. b2World* m_world;
  12. b2Body *LFoot, *RFoot, *LCalf, *RCalf, *LThigh, *RThigh,
  13. *Pelvis, *Stomach, *Chest, *Neck, *Head,
  14. *LUpperArm, *RUpperArm, *LForearm, *RForearm, *LHand, *RHand;
  15. b2RevoluteJoint *LAnkle, *RAnkle, *LKnee, *RKnee, *LHip, *RHip, 
  16. *LowerAbs, *UpperAbs, *LowerNeck, *UpperNeck,
  17. *LShoulder, *RShoulder, *LElbow, *RElbow, *LWrist, *RWrist;
  18. };
  19. #endif