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

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.

主站蜘蛛池模板: 镇宁| 建水县| 文登市| 乐陵市| 襄汾县| 武定县| 和顺县| 沂源县| 交口县| 宜阳县| 格尔木市| 报价| 舞阳县| 内江市| 柞水县| 淳安县| 梁平县| 民乐县| 清徐县| 招远市| 祁东县| 阳东县| 长岛县| 宁晋县| 突泉县| 平乡县| 田东县| 连州市| 平顺县| 兴宁市| 义马市| 康保县| 湄潭县| 开阳县| 兰溪市| 皋兰县| 岱山县| 莆田市| 锦州市| 中牟县| 股票|