添加检查圆重叠的盒子

This commit is contained in:
yhh
2021-05-28 16:13:10 +08:00
parent 8b7baf7f86
commit 4db8734a34
4 changed files with 12 additions and 8 deletions

View File

@@ -28,14 +28,14 @@ module es {
}
protected debugRender(scene: Scene) {
es.Physics.debugDraw(2);
for (let i = 0; i < scene.entities.count; i ++) {
let entity = scene.entities.buffer[i];
if (entity.enabled) {
entity.debugRender(Graphics.instance.batcher);
}
}
es.Physics.debugDraw(2);
}
}
}