已经开启了物理引擎,打出的 log 也显示出已经开启物理引擎了,如下:
onLoad(){
cc.director.getPhysicsManager().enabled = true;
//绘制debug
cc.director.getPhysicsManager().debugDrawFlags = cc.PhysicsManager.DrawBits.e_aabbBit |
cc.PhysicsManager.DrawBits.e_pairBit |
cc.PhysicsManager.DrawBits.e_centerOfMassBit |
cc.PhysicsManager.DrawBits.e_jointBit |
cc.PhysicsManager.DrawBits.e_shapeBit
;
}
可是在界面上并没有任何刚体的线出现。
在界面上中间的小球是刚体,已经添加了
小球的设置:
界面呈现:

