XR Studio HW03

Junke Chen
1 min readSep 28, 2020

1. Which were the most difficult to grasp among the topics discussed this week?

Gradually accustomed to the coding part, I no longer feel anxious about falling behind in class and I think there are more possibilities to discover with more and more knowledge stored.

2. Which are you excited to explore more?

  • What is Addforce’s advantage in application compared to velocity? What can AddForce do in VR environment?
  • Is there any useful cheatsheet of Unity?
  • How to preserve the audio when attached gameobject has been destroyed? I have figured out one solution during doing my homework, that is creating another audio gameobject, but I can’t succeed with the Audio Clip tool on the same object, which the Internet suggested.
  • How to trigger and count the score?

Game Description

(1) Initial Setup

The sphere doesn’t have velocity. All of the objects have no friction.

Player can control the spherel’s movement with right key and left key. When the right/left key is pressed, the sphere has a velocity right/left. When the player don’t press both keys, the sphere lose the velocity on the X-axis.

(2) Start

When click the cube with “start”, the sphere gains a velocity forward, and triggered an audio.

(3) Coin Collection

Through pressing the right/left key, the player controls the sphere to hit the coin which is spinning around the y-axis and each bump causes an audio.

(4) Open the Door to a New World

The sphere hit the closed door(two cubes) and each triggers a rotate, which creates effect of door opening.

coin collection game

--

--