O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - ditch the Ball and Paddle

Click on the Paddle in the Hierarchy panel, and uncheck the checkbox next to its name in the Inspector panel. Do the same for the Ball. Retest the game. The Ball and Paddle are turned off; you should see only the heart bouncing on the tray.

What just happened bypass the aorta

The reason we're using a Capsule Collider on the heart instead of a Mesh Collider is that the heart model is pretty weird and irregular. It could catch its aorta on the corner of the tray and go spinning unpredictably out of control. The Capsule Collider gives the heart a little more predictability, and it won't be glaringly obvious that the heart isn't colliding perfectly. (Of course, a capsule shape is a little wonkier than the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required