/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
*/

import * as THREE from 'three'
import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei/useGLTF'

import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'

type GLTFResult = GLTF & {
  nodes: {
    museum_collision: THREE.Mesh
  }
  materials: {
    collision: THREE.MeshStandardMaterial
  }
}

export default function Model(props: JSX.IntrinsicElements['group']) {
  const group = useRef<THREE.Group>()
  const { nodes, materials } = useGLTF('/model/museum_collisions.glb') as GLTFResult
  return (
    <group ref={group} {...props} dispose={null}>
      <group position={[-5.44, 3.26, -141.11]}>
        <mesh
          material={materials.collision}
          geometry={nodes.museum_collision.geometry}
          position={[0, 0, 0]}
          rotation={[0, -Math.PI / 2, 0]}
          scale={[6.03, 3.75, 6.03]}
        />
      </group>
    </group>
  )
}

useGLTF.preload('/model/museum_collisions.glb')
