O'Reilly logo

Unity 5.x Game Development Blueprints by John P. Doran

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

Creating our player

Having the basis of our world is great, but if we don't have a player, it doesn't matter how nice the level looks. In this section, we will create the actual player that will walk around and move in the world:

  1. Let's first create a Capsule by selecting GameObject | 3D Object | Capsule.
  2. Right now, the capsule is too big to fit our world due to being larger than our blocks. To easily fix this, we will set the Scale of our Capsule to be (0.4, 0.4, and 0.4). Also, set its Position to (1, 2, 0):
    Creating our player
  3. Now, we want our player to use gravity and forces, so we will need to add a Rigidbody component by going to Component | Physics | Rigidbody

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