Week 6 - Progress of VR Project

Week 6 started not too well, cause 2 of the group members decided to quit the group and start a new one. Since we had an idea what we want to do, we sticked with mini-golf idea, and decided to go further with the functionalities.

Sayed:

Task: Movement design.

Each one us created a mini golf field to start with. I started working on teleportation from one place to another. I created a teleportation anchor at first. Created XR rig. Created empty objects for my right and left controllers.  A base controller for each hand. Added XR controller action based to my base controller and set up references for each controller. Changed the ray from linear to Bezier Curve and changed the color, created a new script to activate and cancel the teleportation. If the player is seated and has not the option of turning around, we implemented a rotation method that with pressing joystick to the right or left he turns 90 degrees accordingly, and finally tested on device.


Dalius:

Task: Make out of bounds system

I had to design and make an out of bounds system, that includes the functionality of Reset position, cause when the ball went out of bounds, I had to return it to the last position where the ball was.
First of all, I have made a plain square, as a ground, and I added Box collider to it , so that when the ball goes out of the golf field, it does not fell off out of the map. And also, for the ground I wrote a small script for the ground.

As we can see on the left, first of all we need to check what kind of object is Triggering us, and if its a ball,       then we are setting a Coroutine, which is set up in unity  as a timer for the task.

Second picture is the ball script, and if the ball enters the OutOfBounds object collision, we are setting out of bounds as a true, and calling ResetToLastPosition method, which waits for Configured seconds and then returns ball back to its previous position.



Comments

Popular posts from this blog

Week 2 - Marker based AR

Week 3 - Markerless AR