Game solo - Remake solo game without cannon js - Start to implement new velocity and colision system

This commit is contained in:
hubourge
2024-10-09 16:50:48 +02:00
parent 9c64b0098c
commit e13bbb55ff
3 changed files with 80 additions and 231 deletions

View File

@ -45,11 +45,10 @@ function createBall()
const material = new THREE.MeshPhysicalMaterial({color: 0xffffff});
const mesh = new THREE.Mesh(geometry, material);
mesh.position.y += 0.3;
mesh.castShadow = true;
mesh.receiveShadow = true;
mesh.material.transparent = true;
mesh.position.set (0, mesh.position.y, 0);
mesh.position.set (0, 0.3, 0);
return (mesh);
}