From 55a0a3de6550f0142b79ab40645c20b465ddded8 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Mon, 10 Feb 2025 01:29:10 -0500 Subject: first person controls --- src/components/ground.jsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/components/ground.jsx (limited to 'src/components/ground.jsx') diff --git a/src/components/ground.jsx b/src/components/ground.jsx new file mode 100644 index 0000000..4042538 --- /dev/null +++ b/src/components/ground.jsx @@ -0,0 +1,17 @@ +import { useRef } from 'react'; +import * as everforest from '../_everforest.module.scss' +import { RigidBody } from '@react-three/rapier'; +import { DoubleSide } from 'three'; +import { useGLTF } from '@react-three/drei'; + +export default function Ground() { + const meshRef = useRef(); + const { nodes } = useGLTF('../assets/terrain.glb'); + return ( + + + + + + ); +} -- cgit v1.2.3