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

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.

主站蜘蛛池模板: 望江县| 阜宁县| 安塞县| 聂荣县| 贵定县| 霍山县| 兰西县| 临高县| 寿光市| 呈贡县| 平遥县| 临沂市| 永福县| 临沧市| 涞水县| 惠安县| 乌恰县| 铁岭县| 香港| 辽宁省| 苗栗县| 霍林郭勒市| 定安县| 丹棱县| 宁陕县| 中西区| 乌鲁木齐市| 彭州市| 广水市| 河南省| 衡阳县| 兴文县| 翁源县| 巴里| 双辽市| 兴化市| 奉化市| 军事| 陆川县| 叶城县| 全南县|