# Starting to code an 8-ball snooker game

**URL:** <https://discourse.threejs.org/t/starting-to-code-an-8-ball-snooker-game/92347>\
**Category:** Showcase\
**Tags:** animation, geometry\
**Created:** [June 21, 2026, 1:54pm UTC](https://discourse.threejs.org/t/starting-to-code-an-8-ball-snooker-game/92347 "2026-06-21T13:54:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrlazz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jrlazz/32/64383_2.png) [@jrlazz](https://discourse.threejs.org/u/jrlazz)\
**Post date:** [June 21, 2026, 1:54pm UTC](https://discourse.threejs.org/t/starting-to-code-an-8-ball-snooker-game/92347/1 "2026-06-21T13:54:02Z")

</div>

I’m starting to code an 8-ball snooker game.  
I’m grateful for learning from Jee Peetee (and of course the brilliant creators of this amazing tool, the AI) about the rich geometry possible calculations with raycasting.

> **[b8.html](https://jrlazz.github.io/shaders/b8.html)**
>
> 8 balls snooker game

 ![8balls](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/1/61e9dbd5b7334cdf995b0f78a3a558eeaada55d4.jpeg)

A more in-depth analysis of the collision between two balls revealed some differences in the code. In a near future I will change the collision to a version without raycaster… the link:

> **[ballball.html](https://jrlazz.github.io/shaders/ballball.html)**
>
> collision of two balls

 ![ballball_1](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/4/d44d3bdba39192290cc58668e3e2e93ffee246bc.png)
