Plugins | Unity | Interaction Framework
Note: This article applies to both Prime 3 Haptic XR Gloves and Prime 3 Mocap Gloves
Note: This article applies to both Quantum Mocap Metagloves and Quantum XR Metagloves.
Setting up the hand
Picking up objects
- Add the “HandGrab” script to the wrist bone.
- For the ghost hand effect add the “InteractionHand” script to the same object that contains the “Skeleton” script
- You can modify the grab radius or the physics layer
Interacting with buttons/switches
To interact with object you need collision, you can do this manually or add the “ColliderGenerator” script provided with the plugin to the same game object that contains the skeleton script
Teleporting
Place the “teleporter” prefab under the wrist bone
Setting up interactables
Grabbables
- Add the “GrabbableObject” script on the object that you want to make grabbable
Make sure the object has a collider component as well
- (Optional) If you want to make the object throwable add the “ThrowableObject” script as well
Make sure the object has a collider component as well
Switches
- Add the “RockerSwitch” component to the object
- Add two collision areas for both sides of the switch with colliders
- Set the pivot of which the switch should rotate
- Set the rotation amount
Turnables
- Add the “TurnableObject” component to the object you want to be rotatable
- Set the turn axis and the up axis, the up axis should be perpendicular to the turn axis
- Make sure the object has a collider component
Sliders
- Add the “MovableObject” component to the object you want to be movable
- Set the start and end position of the slider
- Make sure the object has a collider component
Buttons
- Add the “PushButton” component to the button
- Assign the moving part of the button
- Assign the two collision areas for pressing and releasing