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

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.

主站蜘蛛池模板: 祥云县| 岳普湖县| 翁源县| 东辽县| 扶余县| 晋中市| 胶州市| 满洲里市| 清原| 万宁市| 湛江市| 法库县| 莫力| 凤山县| 临西县| 江津市| 乌兰浩特市| 扎赉特旗| 鄂州市| 于田县| 邢台县| 延边| 赤城县| 江山市| 张家界市| 墨竹工卡县| 四会市| 英山县| 新安县| 东明县| 郧西县| 东源县| 龙口市| 安丘市| 利津县| 明水县| 冷水江市| 武冈市| 丰顺县| 济南市| 邵武市|