From 0c938afb2e3b112822b36064f9c9d0ed98022eed Mon Sep 17 00:00:00 2001 From: bananaba <200tiger1@gmail.com> Date: Thu, 14 Dec 2023 17:21:00 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Set=20distance=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 배결별에 거리 제한이 설정되지 않아 최소크가 너무 작아지는 문제를 해결했다 --- packages/client/src/widgets/galaxy/lib/modules/instances.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/widgets/galaxy/lib/modules/instances.tsx b/packages/client/src/widgets/galaxy/lib/modules/instances.tsx index 8cb7486..b6b179d 100644 --- a/packages/client/src/widgets/galaxy/lib/modules/instances.tsx +++ b/packages/client/src/widgets/galaxy/lib/modules/instances.tsx @@ -82,7 +82,7 @@ export default function Instances({ count, size, color, isCustom }: PropsType) { instancedMeshRef.current.getMatrixAt(index, tempMatrix); tempObject.position.setFromMatrixPosition(tempMatrix); - tempObject.scale.set(scale, scale, scale); + if (scale > 0.5) tempObject.scale.set(scale, scale, scale); tempObject.updateMatrix(); instancedMeshRef.current.setMatrixAt(index++, tempObject.matrix); }