/*
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: {
    collisions001: THREE.Mesh
  }
  materials: {
    collision: THREE.MeshStandardMaterial
  }
}

export default function Model(props: JSX.IntrinsicElements['group']) {
  const group = useRef<THREE.Group>()
  const { nodes, materials } = useGLTF('/model/park_collisions.glb') as GLTFResult
  return (
    <group ref={group} {...props} dispose={null}>
      <mesh
        material={materials.collision}
        geometry={nodes.collisions001.geometry}
        position={[-5.45, 1.23, -33.08]}
      />
    </group>
  )
}

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