kingBook

导航

creator.d.ts 的错误

//export class PhysicsCollider{	
export class PhysicsCollider extends Collider{	

==================检查代码=======================
this.node.getComponent(cc.PhysicsBoxCollider);
==================检查代码end====================
/*export enum DrawBits {		
	e_aabbBit = 0,
	e_pairBit = 0,
	e_centerOfMassBit = 0,
	e_jointBit = 0,
	e_shapeBit = 0,
}*/


//static DrawBits:DrawBits;
static DrawBits = {		
	e_aabbBit= 0,
	e_pairBit = 0,
	e_centerOfMassBit = 0,
	e_jointBit = 0,
	e_shapeBit = 0
};

==================检查代码=======================
cc.director.getPhysicsManager().debugDrawFlags = cc.PhysicsManager.DrawBits.e_aabbBit |
cc.PhysicsManager.DrawBits.e_jointBit |
cc.PhysicsManager.DrawBits.e_shapeBit;
==================检查代码end====================

posted on 2018-05-19 22:21  kingBook  阅读(354)  评论(0编辑  收藏  举报