Unity 4.x Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

More bounce to the ounce

The Ball hits the Paddle and comes to a dead stop. Pretty cool for such a small effort, but it won't do for a keep-up game. We need to get that Ball bouncing!

Select the Ball and take a close look at its Sphere Collider component in the Inspector panel. One of the parameters, or options, is called Material. Next to that, we see the label None (Physic Material) (this text may be slightly cut off depending on your screen resolution—to see the whole label, click-and-drag the left edge of the Inspector panel to increase its width). There's a small circle with a dot in the middle next to the label that means we can pop open a selection window. What hidden wonders await us in that window?