()
| 230 | } |
| 231 | |
| 232 | function createProxy() { |
| 233 | for (let i = 0; i < actors.length; ++i) { |
| 234 | const j = (Math.random() * actors.length) | 0; |
| 235 | const actor = actors[j]; |
| 236 | if (actor.proxyId == null) { |
| 237 | getRandomAABB(actor.aabb); |
| 238 | actor.proxyId = tree.createProxy(actor.aabb, actor); |
| 239 | return; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | function destroyProxy() { |
| 245 | for (let i = 0; i < actors.length; ++i) { |
no test coverage detected