现在3.0的physicsWorld好像有BUG不能控制镜头。
想用回box2d却发现draw方法不能override了,请问各位大大该怎么debug啊?
感谢感谢。
现在3.0的physicsWorld好像有BUG不能控制镜头。
想用回box2d却发现draw方法不能override了,请问各位大大该怎么debug啊?
感谢感谢。
看源码附带的Box2dTest例子
将其中的注释去掉
// _debugDraw = new GLESDebugDraw( PTM_RATIO );
// world->SetDebugDraw(_debugDraw);
uint32 flags = 0;
flags += b2Draw::e_shapeBit;
// flags += b2Draw::e_jointBit;
// flags += b2Draw::e_aabbBit;
// flags += b2Draw::e_pairBit;
// flags += b2Draw::e_centerOfMassBit;
//_debugDraw->SetFlags(flags);
```
参考例子终于解决了。谢谢回复。