Skip to content
kete1goguadze edited this page Sep 22, 2024 · 9 revisions

Goal

Create a virtual Clock consisting with a solid 3d Body. The User should be able to change the Time to see the Weather Forecast.

User Story

When i use the Globe i want to see how the weather will be at a certain time. I wanna move my fingers up and down to scroll through the Time and therefore the weatherforecast.

Unity Implementation & Clock Body:

Clock Implementation Details:

  • The clock model was finalized using Blender.

  • Interaction with the clock was implemented using 'OnTriggerEnter' and 'OnTriggerExit' methods, with 'isTrigger' enabled on the colliders.

  • Adjustable Time and Date: The clock's time and date can be adjusted in various increments (1, 2, or 5 steps) depending on the distance between the first and last collision points.

  • Preventing Irregular Times: A function was added to prevent setting irregular times.

clock

2024-06-19_21-13-28.mp4

Clock Integration Update

  • After creating a virtual clock, we wanted it to be part of the globe, not something separate from our main object. So, we decided to place it under the globe, resembling a watch. This way, our interactive XR globe can float above the clock, which shows the time where you are and isn't location-dependent.

clock1

Challenges

  • The sizes of the clock and colliders need to be readjusted, as testing revealed that two colliders were often unintentionally touched, leading to multiple numbers being changed.

  • The time is not yet automatically adjusted to the time zone of a newly selected location.