Tip:
Highlight text to annotate it
X
LEARNING ACHIEVEMENTS
1. Can learn various objects and components in unity 3D applications
2. Get used to creative and innovative thinking
3. Can understand programming elements 4. Can make project pinball game
MATERIAL - Creating level design
- Learn the rigidbody component of the ball
- Creation of a flipper object
- Introduction of scripts and programming concepts in various objects
In here, we will make Pinball Game using Unity 3D application.
First, we create a new project.
we name it Pinball Game.
Then, we create project.
so, this is the first look of Unity 3D when will create a new project
To create a Pinball Game, First, we make a board or the game's backdrop.
by click on the game object, 3D object, then select plane
then set the x coordinates = 2, y = 1, and z = 4
then the z position = 3
or you can also set the size according to the wishes of each.
then we change name of the plane object that was changed to board
Next, we will make the edge of the board after making the board using the game object, 3D object, select cube
the edge of the board that we need is 4, then we will duplicate it
by CTRL + D
the first edge of the board
we will name it WallRight
then change the position and the scale of each
The next step is to create a new object in the form of a ball
by click on the game object, 3D object, then select sphere
then, change the name to ball
we set the position and the scale of each on the ball object.
then, to given mass and gravity influence on the ball, we can click compnent, physics, then select rigidbody
in the inspector of Rigidbody there are a mass. This mass to set the mass of the ball
we set the mass = 0,75
or you can also set the mass to the wishes of each.
there is the influence of gravity too
Furthermore, to add innovation in project, we will add color to each object
First, we will color the ball object
by click create, select material, the we name it ball
Then the inspector has albedo options, we will add color according to our wishes
next, the color of this material is dragged to ball object
in the second, we will color the board
the step is same as before, we click material, then we name it board
click albedo on the inspector, then add color according to our wishes
Drag it
to the board
Next, we will color edge of the board
the step is same as before, we click material, then we name it wall
add color according to our wishes
then, drag it
to each edge of the board