MCPcopy
hub / github.com/piqnt/planck.js / runQuery

Function runQuery

example/DynamicTreeTest.ts:43–54  ·  view source on GitHub ↗
(tree: DynamicTree<Actor>)

Source from the content-addressed store, hash-verified

41}
42
43function runQuery(tree: DynamicTree<Actor>) {
44 tree.query(queryAABB, queryCallback);
45
46 for (let i = 0; i < actors.length; ++i) {
47 if (actors[i].proxyId == null) {
48 continue;
49 }
50
51 const overlap = AABB.testOverlap(queryAABB, actors[i].aabb);
52 // console.assert(overlap == actors[i].overlap);
53 }
54}
55
56const rayCastInput: RayCastInput = {
57 // p1: { x: 0.0, y: 2.0 + worldExtent },

Callers 1

DynamicTreeTest.tsFile · 0.85

Calls 2

queryMethod · 0.80
testOverlapMethod · 0.45

Tested by

no test coverage detected