Edit: To use the calibration feature, stand in a t-pose (arms at shoulder level extended to either side) and press the calibration button (start by default).
It doesn’t matter what pose your character is in during calibration as long as they are generally standing.
Copy the Hydra Plugin into your project dir and enable it in the Plugins menus, restart.
Make a new BP derived from HydraPlayerController. I called mine DHydraPlayerController, D being for Dungeon (Survival).
Go to World Settings and set the game mode override settings to use your HydraPlayerController BP you just made.
Event graph for Hydra player controller.
This is in the Hydra player controller. Notice the variables there and the function Calibrate Hydra (I use start, easy to find on the controller). The base offset one is just a static 40 in Z, it doesn’t change. I could use a float but I plan on doing a more thorough calibration step in the future to get more exact mappings, so I’m leaving it as a vector for now. The midpoint we calculate.
Next comes the Calibrate function, also in the controller:
Next we’re going into the character’s animation blueprint
First, add these variables
Then create this (looks messy but is simple). Pull off the character node to get the controller.
The last step is to set up something like this in the AnimGraph. Ignore the wiring that goes off screen, it’s just doing a static rotation to fix the default hands for my particular character.
I’m using component space for the IK target positions.
I’ll be porting this in a more polished state into the VR Game Templates by Mitch (of Team Metatron).