Many Colliders
This example demonstrates the performance of the engine when using many colliders.
info
Some recent changes in the engine have resulted in a performance regression when creating a large number of meshes.
This is a known issue and will be fixed in a future release.
for (let level = 0; level < 6; level++) {
for (let row = 0; row < 10; row++) {
for (let col = 0; col < 10; col++) {
const x = -9 + (18 / 10) * col;
const y = 0.5 + 3 * level;
const z = -9 + (18 / 10) * row;
const entity = this.world.createEntity();
this.world.addComponents(entity, [
),
]);
}
}
}