Add initial project setup with pnpm and configure .gitignore
- Created .gitignore to exclude node_modules, build outputs, environment files, logs, and editor-specific files. - Added pnpm-lock.yaml to manage project dependencies. - Introduced pnpm-workspace.yaml to allow builds with esbuild. - Updated script.js to set mesh position using a single method call, cleaning up commented-out code.
This commit is contained in:
@@ -12,6 +12,10 @@ const scene = new THREE.Scene()
|
||||
const geometry = new THREE.BoxGeometry(1, 1, 1)
|
||||
const material = new THREE.MeshBasicMaterial({ color: 0xff0000 })
|
||||
const mesh = new THREE.Mesh(geometry, material)
|
||||
// mesh.position.x = 0.7
|
||||
// mesh.position.y = -0.6
|
||||
// mesh.position.z = 1
|
||||
mesh.position.set(0.7, -0.6, 1);
|
||||
scene.add(mesh)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user