For this weeks Unity tutorial, instead of following a video, I had to go through a step by step article on how to make a clock in unity without any extra asset packs, textures etc. This required some basic knowledge of unity and the most up to date version.
I started by creating a clock in unity, there's an actual option to do so, then I create a cylinder to help create the face of the clock. Then to create the flat clock face, the Y component must be reduced to 0.1 and the X and Z components increased to 10.
Then I created the indicators on the clock, I created 3-D cube shapes and changed the scale to (0.5, 0.2 and 1). Then I Changed the colour of the indicator to black. Then I placed the indicator onto the clock and then changed its angle on the Y-axis so it looks correct. Then copy and paste more indicators, changing each angle to suit the position of each hour until there is 12.
To create the clock arms, I had to create a 3-D object, which was a cube. And then change its scale to (0.3, 0.2 and 2.5) and then position it correctly on the face of the clock while making the hand narrower than the indicators. Then I created a pivot point for the arm. I also did the same process for the smaller hand but the only difference is the scale for it was (0.1, 0.1 and 5).
I then saved the finished clock as an asset and then went onto animating it which I did find somewhat confusing and complex. I had to use Javascript to help code it so I could animate it.
Screenshot of tutorial |
I started by creating a clock in unity, there's an actual option to do so, then I create a cylinder to help create the face of the clock. Then to create the flat clock face, the Y component must be reduced to 0.1 and the X and Z components increased to 10.
Then I created the indicators on the clock, I created 3-D cube shapes and changed the scale to (0.5, 0.2 and 1). Then I Changed the colour of the indicator to black. Then I placed the indicator onto the clock and then changed its angle on the Y-axis so it looks correct. Then copy and paste more indicators, changing each angle to suit the position of each hour until there is 12.
To create the clock arms, I had to create a 3-D object, which was a cube. And then change its scale to (0.3, 0.2 and 2.5) and then position it correctly on the face of the clock while making the hand narrower than the indicators. Then I created a pivot point for the arm. I also did the same process for the smaller hand but the only difference is the scale for it was (0.1, 0.1 and 5).
I then saved the finished clock as an asset and then went onto animating it which I did find somewhat confusing and complex. I had to use Javascript to help code it so I could animate it.
Comments
Post a Comment