cocos2dx lua中如何开启Box2D调试绘图
答案:1 悬赏:50 手机版
解决时间 2021-03-01 12:03
- 提问者网友:自食苦果
- 2021-02-28 16:41
cocos2dx lua中如何开启Box2D调试绘图
最佳答案
- 五星知识达人网友:痴妹与他
- 2021-02-28 18:20
代码:Include LuaBox2D.cpp and LuaBox2D.h in your project. LuaBox2D.h is missing an include, be sure to #include "tolua++.h" there.
Register the lua box2D extension by editing your Appdelegate.cpp file.
Add the include: #include "LuaBox2D.h"
Add the following to the bottom of the AppDelegate::applicationDidFinishLaunching() function: tolua_LuaBox2D_open(pEngine->getLuaState());
Register the lua box2D extension by editing your Appdelegate.cpp file.
Add the include: #include "LuaBox2D.h"
Add the following to the bottom of the AppDelegate::applicationDidFinishLaunching() function: tolua_LuaBox2D_open(pEngine->getLuaState());
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯