1. Google Cardboard + Unity Workshop Part II
: Gaze Interaction, Spatial Audio, and Building Worlds
Interaction Design / IID 2016 Spring
Class hours : Tuesday 2 pm – 6 pm
Lecture room : International Campus Veritas Hall B203
10th May
IxD
Studio
IID,
2016
Spring
1
2. Getting Started
Download and Samples
−https://developers.google.com/cardboard/unity/downloa
d
Download Unity
−http://unity3d.com/get-unity/download
Download Android Studio
−http://developer.android.com/sdk/index.html
IxD
Studio
IID,
2016
Spring
2
3. Download Assets From the Store
Nature Starter Kit 2
−https://www.assetstore.unity3d.com/en/#!/content/52977
In the Park (Ambient Soundtrack)
−https://www.assetstore.unity3d.com/en/#!/content/51986
Ambient Sample Pack
−https://www.assetstore.unity3d.com/en/#!/content/3765
IxD
Studio
IID,
2016
Spring
3
11. Create a 3D Object Capsule
IxD
Studio
IID,
2016
Spring
11
Add a Capsule
√ Name it “Player”
12. Add Follow Player Script to Cardboard Main
IxD
Studio
IID,
2016
Spring
12
Make a First Person View
√ Add the “Follow Player”
script to Cardboard Main
Object
√ Drag the Player Object to
the Player Game Object
Space
13. Add Components to the Player Object
IxD
Studio
IID,
2016
Spring
13
Add Nav Mesh Agent
Add “Player Motor” Script
√ Drag “CardboardReticle” under
Main Camera Object to the
Cardboard Reticle object space.
14. Activate the Plane Navigation
IxD
Studio
IID,
2016
Spring
14
Select the Plane
Select the Navigation Tab
√ Navigation Static :
Checked
√ Navigation Area :
Walkable
√ Hit the “Bake” Button
15. Add an Event Trigger to the Plane
IxD
Studio
IID,
2016
Spring
15
Add “Event Trigger”
Component
√ Under the Event
Trigger add
PointDown Event
Drag the Player
Object to the space,
√ Select
PlayMotor.SetDestina
tionToCuror Method
27. Add Autowalk Script to CameraMain Game Object
IxD
Studio
IID,
2016
Spring
27
Add Component
√ Rigidbody
√ Constraints
√ Freeze Position : Y
√ Freeze Rotation : Y
Add Script “Autowalk.cs”
√ Modified Version of
https://goo.gl/xJWCQF
√ Speed : 1
√ Walk When Look Down
√ Threshold Angle : 5
√ Freeze Y Position : Checked