projet-nuitinfo-2024/front/src/components/3d/Floor.tsx
iMax 60a12d9cf9 - Ajout d'un océan.
- Ajout d'un personnage manequin.
--> *Modèle 3D du manequin inclus*
- Ajout d'une représentation des axes x,y,z.
- Ajout d'une entité Marker pour mettre des markers sur le manequin.
- Maj du CSS de GamePage.tsx
2024-12-06 01:51:30 +01:00

20 lines
No EOL
533 B
TypeScript

import React from 'react'
import { Group } from 'three'
import * as THREE from 'three'
export default function Floor() {
const floor = new Group()
const floorGeometry = new THREE.PlaneGeometry(100, 100, 100, 100)
const floorMaterial = new THREE.MeshStandardMaterial({ color: 0x00ff00, side: THREE.DoubleSide })
const floorMesh = new THREE.Mesh(floorGeometry, floorMaterial)
floorMesh.rotation.x = -Math.PI / 2
floorMesh.position.y = -2
floor.add(floorMesh)
return <primitive object={floor} />
}