Virtual Reality (VR), Augmented Reality (AR), Mixed Reality (MR) and now Spatial Computing all come together as XR or “Extended-Reality”.
You’re in the right place at the right time to build something amazing in XR!
In this blog post series we will focus on Meta Quest!
Check out other blog articles in this (and other) series!
Quick links to Lance’s latest XR Step-by-Step blog articles by device
Previously we showed how easy it was using Meta Building Blocks to create new example objects that you could grab, poke and more!
But, what if you already have a game object? And you wanted to make that grabbable? or distance grabbable?
With a few clicks we will add these interactable scripts to any object!
Let’s create a 3D Sphere object that’ll have no intractability — and add both the Grab Interactor and the Distance Grab to it.
Note — you could use any asset in fact, such as those you download from the Unity Asset Store.
Grab a sword, make is so you can wield it! Grab a shield and defend yourself!
- (Hierarchy) Right-Click
- Click 3D Object -> 3. Sphere
- (Hierarchy) Click on the Sphere
- (Inspector) The Sphere is really large by default, change the Scale to 0.1, 0.1, 0.1 for X, Y, Z
- (Project) Drag Purple material onto the Sphere
- (Scene) Click on your Sphere -> Press the W key — this give you the ability to drag the Sphere around (in essence changing the Position values) move it somewhere you can reach it
- (Hierarchy) Right-Click the Sphere
- Click Interaction SDK
- Click Add Grab Interaction
- (Grab Wizard) Click Fix All
- (Grab Wizard) Click Create
- You’ll see that it added the ISDK_HandGrabinteraction object under your Sphere and auto-configured all of the options that were in the Grab Wizard based on your choices.
- Wow – this is a lot easier than doing this manually!
- (Hierarchy) Right-Click the Sphere
- Click Interaction SDK
- Click Add Distance Grab Interaction
- (Distance Grab Wizard) Click Fix All
- (Distance Grab Wizard) Click Create
- Now you can see we added a ISDK_DistanceHandGrabinteraction too!
Run it and try!