Week 8 - VR Project presentation

A day before week 8, we scraped our scripts, cleaned our levels, and prepared our Mini-golf VR to be fully functional and working.

Sayed:

Task: Finalizing the project.

I deleted all the teleportation anchors I created for the test. Set up the teleportation system for the other scene or mini-golf court and we should have another scoreboard for another scene.



Physic material

We solved the bouncing problem in unity. We had to create a new physics material and set bounciness to some kind of number(in our case it was 0.7) and set Sphere collider material to our made physics material. Now, if you hit a ball hard, or you hit it up, when it comes back to the ground it will bounce.

Making the presentation, test the project one last time and recording it for the mix class.

What I learned from this project

I personally think this project helped to learn more about the virtual reality and how physics is important to get the best result. I think everything must be as smooth as it can be to create the best experience for the player and every detail can effect this experience.


Dalius:

Task: Make a scoreboard

For the scoreboard we needed to have 2 things: Level score and Total score. For that we had to not let the scoreboard to be destroyed when we moved to another level. After investigation, I Found out that there is a method called: DontDestroyOnLoad() , which does not allow objects to be destroyed, and if our scoreboard is not destroyed on a new Scene, we can have Total of score. 

Awake method is made so that if GameObject that contains the script is initialized when a Scene loads, or when a previously inactive GameObject is set to active. And here we can see that everytime scoreboard is being initialized, we are adding onSceneLoaded method to the SceneLoaded, and resetting the levelscore to 0 , because everytime you move to a new scene(Level), you need to clear the score of the previous level, but keep in Total score field. 


Here, we need to initialize the scoreboard which has the results of our previous level. And when we are initializing a new scoreboard, we are setting the position of it , of where scoreboard suppose to be in our next level. And also, it increases a number of a Hole number. 
Also there is a function called: UpdateLevelScore and UpdateTotalScore, that it is pretty clear what it does,  and in the beginning when we were making a scoreboard, we know that in golf, there is a rule: If you hit 12 shots and wont make it to the hole, you should move to another level, but since this is VR, we decided to let this function do nothing when you hit your ball 12 times.




Comments

Popular posts from this blog

Week 2 - Marker based AR

Week 6 - Progress of VR Project

Week 3 - Markerless AR