How to use the flying-squid.detectFrame function in flying-squid

To help you get started, we’ve selected a few flying-squid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PrismarineJS / flying-squid / test / portal_detector.js View on Github external
it("detect portals from top left",async function() {
          const portals=await detectFrame(world,top[0],new Vec3(0,-1,0));
          assert.deepEqual(portals,[portal])
        });
        it("detect portals from right top",async function() {
github PrismarineJS / flying-squid / test / portal_detector.js View on Github external
it("detect portals from right top",async function() {
          const portals=await detectFrame(world,right[right.length-1],direction.scaled(-1));
          assert.deepEqual(portals,[portal])
        })
      });