physics/CCPhysicsWorld
来源:互联网 发布:seo html页面优化 编辑:程序博客网 时间:2024/05/29 08:25
#ifndef __CCPHYSICSWORLD_H__
#define __CCPHYSICSWORLD_H__
#include "../utils/CCArmatureDefine.h"
#include "../CCBone.h"
#include "../external_tool/sigslot.h"
#include <list>
using std::list;
#ifndef PT_RATIO
#define PT_RATIO 32
#endif
struct b2Manifold;
struct b2ContactImpulse;
class b2Fixture;
class b2Contact;
class b2World;
NS_CC_EXT_BEGIN
class ContactListener;
class GLESDebugDraw;
class CCPhysicsWorld
{
public:
static CCPhysicsWorld *sharedPhysicsWorld();
static void purgePhysicsWorld();
void initNoGravityWorld();
private:
CCPhysicsWorld();
~CCPhysicsWorld();
private:
static CCPhysicsWorld *s_PhysicsWorld;
b2World *m_pNoGravityWorld;
ContactListener *m_pContactListener;
GLESDebugDraw *m_pDebugDraw;
public:
void update(float dt);
void drawDebug();
b2World *getNoGravityWorld();
sigslot::signal2<CCBone *, CCBone *> BoneColliderSignal;
};
NS_CC_EXT_END
#endif/*__CCPHYSICSWORLD_H__*/
- physics/CCPhysicsWorld
- physics
- physics
- physics
- cocos2d-x节点(CCPhysicsWorld.h)API
- Game Physics
- uva physics
- physics/CCColliderDetector
- NOJ Physics
- unity3d Physics
- HDU5826 physics
- Physics Engine
- HDU5826 physics
- physics HDU
- Physics Simulation
- [初学 Unity]PhySics-01.3D Physics
- Havok physics engine 分析
- Game Physics resources
- Unity3D BMFont使用图片自定义字体(无需字体文件)
- TCP/IP详解--第三章
- Scala 集合类
- UNIX 高手的10 个习惯(4)
- python的urllib2不使用系统默认代理
- physics/CCPhysicsWorld
- 将JavaScript视为第一编程语言
- C语言的文件操作
- svnX使用手册
- PHP有没有间隔几秒再执行的功能?该怎么处理
- PHP通过PHPExcel类导出excel
- javascript变量作用域之我见 - Javascript教程
- physics/CCColliderDetector
- js通过googleAIP翻译PHP系统的语言配置的实现代码