Introduction
3D Table Pool is an interactive PictoBlox project that introduces students to the fundamentals of 3D game development and physics-based simulation. In this project, learners create a realistic pool table with cue balls, target balls, and table boundaries using the 3D & XR Extension. Users can aim and strike the cue ball to pocket the balls while experiencing realistic collisions and ball movements. Through this activity, students gain hands-on experience with 3D object manipulation, physics, collision detection, force application, camera controls, and interactive gameplay mechanics. The project helps develop computational thinking, problem-solving, spatial visualization, and programming skills while providing an engaging introduction to 3D graphics, physics engines, and game design.
Prerequisites
Before starting this activity, you should be familiar with:
- Basic knowledge of the PictoBlox interface.
- Familiarity with Events and Control blocks.
- Basic understanding of Motion and Control blocks.
- The 3D & XR Extension added to the project.
- Basic knowledge of the X, Y, and Z coordinate system.
- Basic understanding of 3D object positioning and camera controls.
- Familiarity with the Physics Engine, including concepts such as rigid bodies, colliders, collisions, and force application.
Concept / Logic Explanation
The 3D Table Pool project demonstrates how a realistic 3D pool game can be created using the 3D & XR Extension and the Physics Engine in PictoBlox. The game environment is built by placing 3D objects such as the pool table, cue stick, balls, and table boundaries at predefined X, Y, and Z coordinates. Physics components are then applied to simulate realistic ball movement and collisions.
When the project starts, the program creates the pool table and positions the cue ball and target balls in their initial locations. The camera is set to provide a clear view of the table. The player can aim the cue stick using keyboard or mouse controls and strike the cue ball by applying force through the Physics Engine. As the cue ball collides with the other balls, realistic physics simulate their movement, collisions, and rebounds. This project helps learners understand 3D object placement, camera control, rigid bodies, colliders, force application, collision detection, and physics-based game mechanics while introducing the fundamentals of interactive 3D game development.
The project uses:
- Events to start the game and detect keyboard or mouse input.
- Control blocks to continuously monitor player actions using loops.
- 3D & XR blocks to create, position, rotate, and scale the pool table, balls, and cue stick.
- Physics Engine blocks to apply forces, detect collisions, and simulate realistic ball movement.
- Motion logic to control the cue stick, update the camera view, and provide an interactive gameplay experience
Step-by-Step 3D Model Making
Step 1: Create a New 3D Project
- Open PictoBlox.
- Create a New Project.
- Click Add Extension and add the 3D & XR Extension.
Step 2: Create the Pool Table Scene
- Design the pool table, boundaries, pockets, and pool balls in the 3D Scene.
- Save the completed scene.
Step 3: Initialize the Scene
- Use the When R Key Pressed event.
- Reload the 3D scene.
- Initialize all the game variables such as:
- Selected Player
- Player 0-Solids
- Player 1-Stripes
- Current Player
- Cue Power
- Reset all movement control variables.

Step 4: Position the Camera
- Set the AR Camera position.
- Set the AR Camera rotation.
- Point the camera towards the Ball_Clube object to provide a clear view of the table.
Step 5: Create the Cue Controller
- Add a 3D object named Ball_Clube.
- This object acts as the cue controller used for aiming and striking the cue ball.
Step 6: Add Keyboard Controls
- Use the W, A, S, and D keys to move the Ball_Clube around the pool table.
- Move the object:
- Forward (W)
- Backward (S)
- Left (A)
- Right (D)

Step 7: Control the Cue Power
- Use the Up Arrow key to increase the Cue Power.
- Use the Down Arrow key to decrease the Cue Power.
- The cue power determines the strength of the shot.

Step 8: Implement Game Logic
- Continuously update the cue position.
- Keep the camera focused on the cue controller.
- Store the current player information and game status using variables.
Step 9: Test the Game
- Press the R key to reload and initialize the game.
- Move the cue controller using the W, A, S, D keys.
- Increase or decrease the cue power using the Up and Down Arrow keys.
- Verify that the camera follows the cue correctly and that all controls respond smoothly.
Output
The final output should include:
- A realistic 3D pool table with table boundaries and pockets.
- A complete set of pool balls, including the cue ball and target balls.
- A cue stick that can be aimed and used to strike the cue ball.
- Physics-enabled gameplay with realistic ball movement, collisions, and rebounds.
- An interactive 3D pool game where users can aim, strike, and pocket balls using keyboard or mouse controls.

Conclusion
The 3D Table Pool project provides an engaging introduction to 3D game development in PictoBlox. By creating a realistic pool table environment with pool balls and a cue controller, students learn how to design and organize 3D objects using the X, Y, and Z coordinate system. They also gain practical experience with scene initialization, camera positioning, keyboard-based object movement, cue power control, and interactive gameplay mechanics. This project strengthens computational thinking, spatial visualization, creativity, and problem-solving skills while laying a strong foundation for developing interactive 3D games, simulations, and immersive XR experiences.


