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

Time for action - move the ball into the "sky"

We want the ball to start somewhere in the "sky" (the area above the "ground" plane) so that it will have somewhere to fall from. Just as we did with the Character controller in the Island Demo in Chapter 1, That's One Fancy Hammer, let's use the Inspector panel to move the ball up along the Y-axis into the sky.

  1. Make sure that the Ball GameObject is selected. Click on it in the Hierarchy panel.
  2. You can either click-and-drag the green Y-axis to move the ball up, or type a new Y position for it. As we want to stay on the same page together, let's type it. Look in the Inspector panel and find the Y field it's next to Position in the Transform component of the Ball.
  3. Change the Y position from 0 to 2.
  4. Press the Enter key to commit this change.
  5. Your ball may not have begun life at the origin. Make sure that the values for its X and Z position are at 0.
    Time for action - move the ball into the "sky"
  6. The Ball Game Object should now be hovering two units above the ground plane, which is a marvelous height from where any self-respecting ball can endeavor to fall.
Time for action - move the ball into the "sky"
主站蜘蛛池模板: 昌平区| 竹山县| 潞城市| 襄樊市| 利津县| 长治县| 班玛县| 永胜县| 西丰县| 昂仁县| 周口市| 扎兰屯市| 行唐县| 平远县| 高碑店市| 永胜县| 铁岭市| 龙门县| 怀来县| 江都市| 钟祥市| 甘洛县| 临猗县| 清水河县| 义马市| 宽城| 无棣县| 瓮安县| 英吉沙县| 林甸县| 寿宁县| 咸丰县| 津市市| 深圳市| 象州县| 凤庆县| 凤冈县| 宜州市| 页游| 仪征市| 明水县|