- Creating ELearning Games with Unity
- David Horachek
- 109字
- 2021-07-16 12:22:50
Building character representation
With these requirements in mind, let's build the framework:
- From GameObject | CreateOther, select Capsule, and place it at (
0
,2.5
,0
), as shown in the following screenshot: - Name the capsule
Player
in the Inspector pane. - Create a cube in a similar fashion, and parent it to the capsule by dragging it onto the hero. Scale it to (
0.5
,0.5
,2
), and set its local position to (0
,1.5
,0.5
). - Name the cube object
Hat
.
Congratulations! You now have a representation of our hero in the game. The Hat
object will serve as a visual cue for us in this chapter as we refine the controls and camera code.