Adding UI
Now that the ball is on the course, you need a way to aim and hit it. There are many possible control schemes for this type of game. For this project, you’ll use a two-step process:
- Aim: An arrow appears, swinging back and forth. Clicking the mouse button sets the aim direction.
- Shoot: A power bar moves up and down. Clicking the mouse sets the power and launches the ball.
Aiming the arrow
Drawing an object in 3D is not as easy as it is in 2D. In many cases, you’ll have to switch to a 3D modeling program such as Blender to create your game’s objects. However, in this case, Godot’s primitives will do fine. To make an arrow, you need two meshes: a long thin rectangle and a triangular prism.
Making your own model
If you’re comfortable using a separate 3D modeling program such as Blender, feel free to use that to create the arrow mesh instead of following the following procedure. Just drop the exported model into your...