Institute of Computer Science
  1. Courses
  2. 2021/22 spring
  3. Virtual Reality (LTAT.06.019)
ET
Log in

Virtual Reality 2021/22 spring

  • Introduction
  • Sample Scene
  • Movement Systems
    • Portal Travel
    • Short Dash
    • Wand Flying
    • Third Person Teleport
    • Nodding
    • ArmSwing
  • Menu Systems?
    • Lever
  • Interactions?
    • Minigame
    • Portal Interactions
    • Inventory
    • Ghosting
    • DoorInteractions

Lever (Joonas P)

My contribution for menu systems is a lever object in the game world. This can potentially be used in menus and also the game world itself. The lever system is made of two objects - the pivot point and the handle. All the logic is hosted in the handle while the pivot point is just used as its name suggests.

To make sure that this object can be used in many circumstances, I used Unity's event system to call events when the handle is pulled up or down. This means that any public method from a script can be called via the lever. There are also public variables for the min and max lever angle and haptic feedback on hitting these angles.

Video: Attach:lever.mp4

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment