Computer Science lecture note, Lecture notes of Computer Science

Computer Science lecture notes

Typology: Lecture notes

2021/2022

Available from 03/08/2023

petalex
petalex 🇲🇦

5 documents

1 / 24

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Game Development
Spring 2018
Tutorial: Overview of
Unity
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Computer Science lecture note and more Lecture notes Computer Science in PDF only on Docsity!

Game Development

Spring 2018

Tutorial: Overview of

Unity

Unity Download Assistant The Unity Download Assistant is a small executable program (approximately 1 MB in size) which lets you select which components of the Unity Editor you want to download and install.

Hierarc hy Scene Inspect or Project

Game

  1. Open Unity **Setting up the project
  2. Creating a new project** a. File -> new project b. Name it, save it on desktop
  1. Search for the assets “Space Shooter Tutorial” and click on the results
  2. Download the assets

Setting up the project

4. Importing assets (make sure to select all)

Setting up the project

**5. Select scene

  1. Save scene** a. Note “untitled” at top b. File -> save scene as c. Create a directory _scene d. Save the scene as “main” in this directory

The player GameObject

  1. Setting up the Player GameObject using mesh models, colliders and other built-in components a. Select scene b. Select Models c. Drag player ship onto the scene

The player GameObject

  1. Setting up the Player GameObject using mesh models, colliders and other built-in components a. Select scene b. Select Models c. Drag player ship onto the scene

The player GameObject

  1. Focus on the player a. Click on it b. Rename it (“player”) c. Place player at origin (0,0,0) i. Click ii. Reset d. Transform a. Where b. Direction c. Scale

The player GameObject

  1. Focus on the player
  2. Components a. To perform specialized functions b. Creating new components c. Physics to govern the physics laws i. Motion ii. Collision (rigid bodies) d. Add a rigid body a. Add component -> Physics -> Rigid body b. Component “Rigid Body” is created

The player GameObject

  1. Focus on the player
  2. Components a. Add component -> Physics -> Rigid body b. Component “Rigid Body” is created c. Deselect “use gravity” d. Collision Volume i. Add component -> Physics -> Capsule Collider ii. Adjust the capsule to cover the player 1. Change direction to Z 2. Slide to increase the height 3. Slide to decrease the radius

The player GameObject

  1. Focus on the player
  2. Components a. Add component -> Physics -> Rigid body b. Component “Rigid Body” is created c. Deselect “use gravity” d. Collision Volume i. Add component -> Physics -> Capsule Collider ii. Adjust the capsule to cover the player iii. Top view to get a better feel of the volume i. Click on the Y of the Gismo to get a top view e. Collision will trigger an event, so check the “Is Trigger” f. From Prefab add player engine in the hierarchy under player