Use the Unity SDK to integrate the Mavrik Pro into XR projects and access the Mavrik Pro Sandbox.
STRIKER DEVICE
In your XR Rig/Origin game object, add a child object to the left hand, right hand, or tracker object. Add the Striker Device script to this child object. Striker Device will find the Mavrik-Pro device at it's index in the StrikerLink device list (0 by default unless multiple devices are connected). It will return the state of the device to confirm your connection to StrikerLink.
STRIKER CONTROLLER
Add the Striker Controller script to an object at the root of your scene. You can supply additional haptic libraries here when you create them and they'll be sent to the runtime when the scene loads. You can also set a library prefix here so that your app's haptic libraries are uniquely identified and don't collide with other apps or projects.
Tracking
In the XR Rig object that you've added the Striker Device script, e.g., left or right hand, leave the position and rotation at the zero matrix, i.e., 0,0,0. StrikerLink handles tracker offsets, which can be configured using the Mavrik Manager.
Developers' Sandbox
An XR sandbox in Unity to explore the Mavrik-Pro blaster with as little setup as possible.
Mavrik Pro OpenXR Sandbox for Unity (click here)
The Mavrik Pro Sandbox project uses Unity 2021.3.23. It features 3 identical scenes that will build for PCVR and Android with the correct settings. The difference in the scenes is controller handling. The sandbox supports the VIVE Focus 3 wrist tracker, Focus 3 controller, and Meta Quest touch controller. Try out 5 blaster modes for a variety of haptic effects and sensor settings.
Mavrik Pro Sandbox for Quest 3 w/ Snapshot Offset Example
The Mavrik Pro Sandbox project uses Unity 2023.2.13. This version of the sandbox is meant to be built specifically for the Quest 3 headset. It demonstrates what we consider the universal standard in offset adjustment of the blaster assets in relation to the controller or tracking game object. Simply point the muzzle of the blaster in the sandbox at the black cube that says "Snapshot Offsets" and pull the trigger. The model of the blaster will freeze in space and allow you to move your real world blaster into the same position as your blaster model. When it is properly aligned, pull the trigger again to set the offsets. Click the 'Save'. button on the offset UI to save your settings, or use the sliders to make minor adjustments to your offsets and then click 'Save'.
Project settings for specific builds can be found at their respective sites:
OpenXR for Vive Focus 3
MetaQuest
Skip building and just start shooting
Focus 3 (controller)
Focus 3 (wrist tracker)
MetaQuest 2
Blasterverse Demo Game
(PCVR Vive Business Streaming/Steam & Left Focus 3 Wrist Tracker ONLY)
A short FPS for PCVR as first seen at Tokyo Game Show 2022. Set in a spaceship, your task is to aim and shoot at targets as you move through the environment with 3 different blaster assets (Mavrik Classic, Ballzooka, and Crossbeaux) that we created to demonstrate the dynamic range of the Mavrik Pro.
*IMPORTANT SETTINGS
Vive Business Streaming - Emulate Vive Wrist Tracker as Vive Tracker
SteamVR - Settings>Controllers>Manage Trackers - Set your active Left "Tracker Role" to Camera