UNPKG

r3f-template

Version:

CLI to scaffold React Three Fiber templates with or without physics( Rapier )

15 lines (12 loc) 348 B
import { RigidBody } from "@react-three/rapier"; const Ground = () => { return ( <RigidBody type="fixed" colliders="hull"> <mesh rotation={[Math.PI / 2, 0, 0]}> <planeGeometry args={[30, 30]} /> <meshBasicMaterial color={"white"} side={2} /> </mesh> </RigidBody> ); }; export default Ground;