代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。