From bf2e2cce339083c6a8e7b9ec73a450801def12e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CIsaac?= Date: Sun, 14 Apr 2024 18:35:40 +1000 Subject: [PATCH] fix: floor component children --- packages/react-three-jolt-addons/src/components/Floor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-three-jolt-addons/src/components/Floor.tsx b/packages/react-three-jolt-addons/src/components/Floor.tsx index e7fd32d..3f94361 100644 --- a/packages/react-three-jolt-addons/src/components/Floor.tsx +++ b/packages/react-three-jolt-addons/src/components/Floor.tsx @@ -10,12 +10,13 @@ export type FloorProps = { } & ThreeElements['mesh']; export const Floor = (props: FloorProps) => { - const { size = 20, position = [0, 0, 0], rotation = [0, 0, 0], ...rest } = props; + const { size = 20, position = [0, 0, 0], rotation = [0, 0, 0], children, ...rest } = props; return ( + {children} );