Livraison Colissimo gratuite !

Livraison Colissimo gratuite !

function animate() { requestAnimationFrame(animate); ball.position.x += leftRight; ball.position.z += speed; camera.position.z = ball.position.z + 3; camera.position.x += (ball.position.x - camera.position.x) * 0.05; camera.lookAt(ball.position); renderer.render(scene, camera); } animate(); </script> </body> </html>

<!DOCTYPE html> <html> <head> <style> body { margin: 0; overflow: hidden; } </style> </head> <body> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@0.128.0/build/three.module.js" } } </script> <script type="module"> import * as THREE from 'three'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); const renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); document.body.appendChild(renderer.domElement);

// Simple movement let speed = 0.1; let leftRight = 0; window.addEventListener('keydown', (e) => { if (e.key === 'ArrowLeft') leftRight = -0.1; if (e.key === 'ArrowRight') leftRight = 0.1; }); window.addEventListener('keyup', () => leftRight = 0);

camera.position.set(0, 2, 5); camera.lookAt(ball.position);

// Lights const light = new THREE.DirectionalLight(0xffffff, 1); light.position.set(5, 10, 7); scene.add(light); scene.add(new THREE.AmbientLight(0x404040));

Talkie-walkie Baofeng UV-5R
Meilleure vente
Talkie-Walkie Baofeng UV-5R
49,90 € 39,90 €
VOIR LE PRODUIT
Talkie-walkie Baofeng UV-5R
Meilleure vente Talkie-Walkie Baofeng UV-5R
VOIR LE PRODUIT