We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387fa43 commit f22c603Copy full SHA for f22c603
test/core/OctreeRaycaster.js
@@ -11,15 +11,15 @@ test("can find intersecting octants", t => {
11
12
const octree = new Octree(root);
13
const raycaster = new Raycaster(
14
- new Vector3(0.5, -1, 0.5),
15
- new Vector3(1, 1, 1)
+ new Vector3(0.5, 0.5, 2),
+ new Vector3(0, 0, -1)
16
);
17
18
octree.root.split();
19
20
const intersects = octree.getIntersectingNodes(raycaster);
21
22
- t.is(intersects.length, 1, "should return one intersecting octant");
23
- t.is(intersects[0], octree.root.children[5], "should return the sixth child");
+ t.is(intersects.length, 2, "should return two intersecting octant");
+ t.is(intersects[0], octree.root.children[7], "should return octant #8");
24
25
});
0 commit comments