This is an individual assignment, not a collaborative assignment. Groups with Magic Leap 1s should arrange time for both members to use the device to finish this homework.
The task is to demonstrate selecting and manipulating a virtual object on your smartphone or Magic Leap 1. Create a Unity project and place two or more virtual objects in the scene (simple cubes or geometric primitives are fine). Write a script that senses a tap on the screen (or, in the case of Magic Leap 1, a press of the trigger on the controller). Then, cast a ray outward from the center of the screen (or in the case of Magic Leap 1, cast a ray outward from the controller).
If the ray hits a virtual object, change the parent of the selected object to the smart phone’s camera (or, in the case of the Magic Leap, the controller). Show that you can manipulate the object and change its pose. Finally, have a way to “unselect” the object (e.g., another screen tap, or trigger press).
Capture a screencast showing your app running on your smartphone or Magic Leap 1. Demonstrate selection, manipulation, and unselection of at least two objects. Upload the video.
Note: You don’t need an image target for this, since the virtual objects are not registered to anything in the real world. However, students using smartphones should include Vuforia in their Unity projects and use the Vuforia AR camera. Students with Magic Leap 1s don’t need to include Vuforia in their Unity projects.
Rubrics (10 pts)
- Selection (2 pts)
- Manipulation (2 pts)
- Unselection (2 pts)
- At least two objects (2 pts)
- Video (2 pts)