cocos2d-x节点(CCPhysicsSetting.h)API

本文来自http://blog.csdn.net/runaying ,引用必须注明出处!

cocos2d-x节点(CCPhysicsSetting.h)API

温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记

都是一些物理引擎设置的定义

///cocos2d-x-3.0alpha0/cocos2dx/physics
//都是一些物理引擎设置的定义


#ifndef __CCPHYSICS_SETTING_H__
#define __CCPHYSICS_SETTING_H__

#define CC_PHYSICS_UNKNOWN  0
#define CC_PHYSICS_BOX2D    1
#define CC_PHYSICS_CHIPMUNK 2

#define CC_USE_CHIPMUNK

#ifdef CC_USE_BOX2D
#define CC_PHYSICS_ENGINE CC_PHYSICS_BOX2D
#elif defined(CC_USE_CHIPMUNK)
#define CC_PHYSICS_ENGINE CC_PHYSICS_CHIPMUNK
#else
#define CC_PHYSICS_ENGINE CC_PHYSICS_UNKNOWN
#endif

#if (CC_PHYSICS_ENGINE != CC_PHYSICS_UNKNOWN)
#define CC_USE_PHYSICS
#endif

#endif // __CCPHYSICS_SETTING_H__


你可能感兴趣的:(api,cocos2d,cocos2dx,cocos2d-x)