MCPcopy Create free account
hub / github.com/melonjs/melonJS / round

Function round

packages/melonjs/tests/octree.spec.js:545–552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543 // no stale objects). Catches incomplete `clear()` on collapse.
544 octree.max_objects = 1;
545 const round = () => {
546 const a = makeItem({ x: 50, y: 50, z: -50 });
547 const b = makeItem({ x: 500, y: 50, z: -50 });
548 octree.insert(a);
549 octree.insert(b);
550 octree.remove(a);
551 octree.remove(b);
552 };
553 for (let i = 0; i < 5; i++) {
554 round();
555 }

Callers 1

octree.spec.jsFile · 0.70

Calls 3

makeItemFunction · 0.85
insertMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected