新增physics.debugDraw默认绘制

This commit is contained in:
yhh
2021-05-28 15:45:45 +08:00
parent 28145e876f
commit 8b7baf7f86
6 changed files with 13 additions and 20 deletions

View File

@@ -15,8 +15,9 @@ module es {
this.renderAfterStateCheck(renderable, cam);
}
if (this.shouldDebugRender && es.Core.debugRenderEndabled)
if (this.shouldDebugRender && es.Core.debugRenderEndabled) {
this.debugRender(scene);
}
this.endRender();
}

View File

@@ -34,6 +34,8 @@ module es {
entity.debugRender(Graphics.instance.batcher);
}
}
es.Physics.debugDraw(2);
}
}
}