官术网_书友最值得收藏!

Building character representation

With these requirements in mind, let's build the framework:

  1. From GameObject | CreateOther, select Capsule, and place it at (0, 2.5, 0), as shown in the following screenshot:
    Building character representation
  2. Name the capsule Player in the Inspector pane.
  3. 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).
  4. 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.

主站蜘蛛池模板: 旺苍县| 沽源县| 门源| 通山县| 金秀| 北宁市| 峨眉山市| 通州市| 德保县| 左权县| 沈丘县| 元朗区| 诸暨市| 东港市| 来安县| 广丰县| 荆州市| 岳阳市| 哈密市| 拜城县| 延长县| 夏河县| 斗六市| 连平县| 亚东县| 岚皋县| 施甸县| 惠来县| 龙游县| 勃利县| 辽源市| 竹北市| 大渡口区| 海南省| 宁陵县| 穆棱市| 张家口市| 凉山| 乡宁县| 龙陵县| 象山县|