From 454534d1e0c6db5db4d4c4614a676e1d7c756c78 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Sat, 19 Aug 2023 16:43:03 +0900 Subject: [PATCH] Fix unnecessary args --- src/core/cast/raycastFirst.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/cast/raycastFirst.js b/src/core/cast/raycastFirst.js index a0e1c18e..3e789662 100644 --- a/src/core/cast/raycastFirst.js +++ b/src/core/cast/raycastFirst.js @@ -6,10 +6,10 @@ import { intersectRay } from '../utils/intersectUtils.js'; const _boxIntersection = /* @__PURE__ */ new Vector3(); const _xyzFields = [ 'x', 'y', 'z' ]; -export function raycastFirst( bvh, root, side, ray, intersects ) { +export function raycastFirst( bvh, root, side, ray ) { BufferStack.setBuffer( bvh._roots[ root ] ); - const result = _raycastFirst( 0, bvh.geometry, side, ray, intersects ); + const result = _raycastFirst( 0, bvh.geometry, side, ray ); BufferStack.clearBuffer(); return result;