- Add ball border transparence
    - Add others collision player on bottom and top
    - Fix ball velocity
This commit is contained in:
hubourge
2024-09-04 17:50:41 +02:00
parent b2bef2ad79
commit 345a94febd
4 changed files with 134 additions and 54 deletions

View File

@ -6,7 +6,7 @@
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/28 15:58:03 by edbernar #+# #+# */
/* Updated: 2024/08/30 16:01:52 by hubourge ### ########.fr */
/* Updated: 2024/09/04 15:07:07 by hubourge ### ########.fr */
/* */
/* ************************************************************************** */
@ -48,6 +48,7 @@ function createBall()
mesh.position.y += 0.3;
mesh.castShadow = true;
mesh.receiveShadow = true;
mesh.material.transparent = true;
mesh.position.set (0, mesh.position.y, 0);
return (mesh);
}