9 Star 14 Fork 12

zapline/kxlol_new

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PhysicsLoader.h 576 Bytes
一键复制 编辑 原始数据 按行查看 历史
kingwl 提交于 10年前 . 添加多边形地形
#ifndef PhysicsLoader_x_h
#define PhysicsLoader_x_h
#include "cocos2d.h"
USING_NS_CC;
class BodyDef;
class b2Body;
class PhysicsLoader
{
public:
PhysicsLoader();
void addShapesWithFile(const std::string &plist);
void addFixturesToBody(b2Body *body, const std::string &shape);
Vec2 getAnchorPointForShape(const std::string &shape) const;
void reset();
float getPtmRatio() const;
~PhysicsLoader();
private:
std::map<std::string, BodyDef*> m_shapeObjects;
float m_ptmRatio;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zapline/kxlol_new.git
git@gitee.com:zapline/kxlol_new.git
zapline
kxlol_new
kxlol_new
master

搜索帮助

371d5123 14472233 46e8bd33 14472233