Book Image

Building an FPS Game with Unity

5 (1)
Book Image

Building an FPS Game with Unity

5 (1)

Overview of this book

Table of Contents (18 chapters)
Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Index

Creating geometry


The first thing we are going to do is to learn how to create geometry as follows:

  1. From the top menu, go to File | New Scene. This will give us a fresh start to build our project.

  2. Next, because we already have Prototype installed, let's create a cube by hitting Ctrl + K.

  3. Right now, the Position value of our cube (with its name as pb-Cube-1562 or something similar) is 2, -7, -2. But for simplicity's sake, I'm going to place it in the middle of the world. We can do this by typing in 0, 0, 0 by going over to the Inspector tab, going to the Transform component and then clicking on the X position. Notice that the cursor is now automatically in the Y slot. Type in 0 and press Tab again. Then, in the Z slot, press 0.

    Tip

    Alternatively, you can right-click on the Transform component and select Reset Position.

  4. Next, to center the camera back on our Cube object, we will go over to the Hierarchy tab and double-click on the Cube object (or select it and press F).

  5. Now, to actually modify this...