Files
Mario-Kart-3.js/src/components/Ground.jsx
T
2024-01-22 11:54:02 +01:00

13 lines
368 B
React

import { RigidBody } from "@react-three/rapier";
export const Ground = (props) => {
return (
<RigidBody type="fixed" {...props}>
<mesh transparent receiveShadow rotation={[-Math.PI/2 , 0 ,0]}>
<planeGeometry args={[1000, 1000, 1000]} />
<meshStandardMaterial color="yellow" opacity={0} transparent/>
</mesh>
</RigidBody>
);
};