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 - it's a hit!

Now we'll do a little fiddling to bring the Character Prefab in line with its new, smaller spaceship model. You remember when we added that gigantic green box collider to the human character? Well it's still there, and it's not going to cut it for this game. We fix!

Time for action - it's a hit!
  1. In the Hierarchy panel, click to select the Character Prefab.
  2. Point your mouse cursor over the Scene view, and press the F key on your keyboard to focus in on the ship.
  3. In the Inspector panel, find the Box Collider component.
  4. In the menu, go to Component | Physics | Mesh Collider. A prompt asks us whether we want to Replace or Add the new collider. Click ...

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