
上QQ阅读APP看书,第一时间看更新
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.
- Make sure that the Ball GameObject is selected. Click on it in the Hierarchy panel.
- 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.
- Change the Y position from 0 to 2.
- Press the Enter key to commit this change.
- Your ball may not have begun life at the origin. Make sure that the values for its X and Z position are at 0.
- 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.
