import { Center, Instance, Instances } from "@react-three/drei"; import { GroupProps, useFrame } from "@react-three/fiber"; import { useRef } from "react"; import * as THREE from "three"; import { CustomMaterial } from "./material"; const radius = 3; const count = 8; function Item(props: GroupProps) { const ref = useRef(null); useFrame(() => { if (ref.current) { ref.current.rotation.x += 0.01; ref.current.rotation.y += 0.01; ref.current.rotation.z += 0.01; } }); return ( ); } export const Item3 = () => { const groupRef = useRef(null!); useFrame(() => { if (groupRef.current) { groupRef.current.rotation.z -= 0.01; } }); return (
{Array.from({ length: 8 }).map((_, index) => { return ( ); })}
); };