Collarboration Unit week 8 – Debugging

In the past week ,Cal and me merged all the enviroment and start to do the interactivity .

Mini Game

I successfully did the mini game’s part.

The logic of this game shares the similiar way to achieve it. Like in the CVRPP, I did the mechanic of move left and right to avoid the obstacle. The obstacle will spawn automatically. And this minigame is also about grab as much ice cream as you can .

So I need to make the ice cream prefab and spawn first , once user use the ice cream to smash at camera , it will gain 10 points and have the effect to let user know they “eat ” the ice cream successfully.

We set the 20s countdown of this game, so it will have the timer at the corner. Because it only just some interaction part we wanna to have in this VR story so it will be like game can play as many as you can. It just played once and the score didn’t really matter to this minigame.

Lin helped me write the timer

Just to make sure the ice cream only collide with camera will have the particle effect. Then I learnt It can have the tag of the camera as”player”.

Here’s the effect of this game.

I opened an empty project to test all the script and I used the blue cube to simulate the “head set”. Because I didn’t set up the xr rig in here to save some time but the logic is the same.

Also because the ice cream has the rigid body , I found it quite interesting when the ice cream spawn at the same position It coillde with each other and start to rotate –it quite funny to grab it , like the ice cream doesn’t wanna you to grab hhh.

BUGS came out

When I finished the script ,we wanna try to it in the total scene but we met a lot of troubles.

First the controller didn’t work on my laptop. We even went to the CTL looking for help, even Alexsandro offered us a offcial cable of the quest 2 but still didn’t work.

Second the school computer version is too old to open our projects and if we try to find the technical support it takes really long time to do iy.

Third is somehow in the beach scene , my xr camera is shaking and jigging and the rate becames only around 20ish . It could be my laptop isn’t powerful enough to run the scene but I didn;t really believe since it’s a new gaming pc.

SOlUTION

Lin told me she has the same problem in last term, the way to resolve the controller is to apply for an app id in oculus and set it in unity which works ! And somehow the camera shaking problem is resolved .

And we also finished the script.

Leave a Reply

Your email address will not be published. Required fields are marked *