var PTM_RATIO = require('../CCPhysicsTypes').PTM_RATIO; var PhysicsDebugDraw = cc.Class({ name: 'cc.PhysicsDebugDraw', mixins: [b2.Draw], ctor: function () { this._drawer = new _ccsg.GraphicsNode(); this._drawer.retain(); }, getDrawer: function () { return this._drawer; }, AddDrawerToNode: function (node) { this._drawer.removeFromParent(); node.addChild(this._drawer); }, ClearDraw: function () { this._drawer.clear(); }, _DrawPolygon: function (vertices, vertexCount) { var drawer = this._drawer; for (var i=0; i