Hi guys!
I’ve been playing with VRTK and I have everything working almost the way I want it to for a simple virtual tour. I’m wondering if there’s any way to snap the teleport ark onto an object when it gets close to it. I’ve gone through most of the example files and the only thing relating to snapping is object snapping which is not what I’m looking for.
An example for what I’m trying to do is basically to have circular disks that indicate a new level will load when you teleport into that disk (Very similar to the sample files for the interaction system with SteamVR) I don’t necessarily need it to animate, but rather lock in the teleport ark when it gets close to the circular spot. I already have my triggers set up to load the new level when the player teleports into the disk, I’d just like it to lock the ark when it gets close.
I’m totally lost with where to even begin looking to get this to work so any ideas are more than welcome.
I did try grabbing the SteamVR teleport model and looking at the code. I found a line of code in the “Teleport Point.cs” script that might be referencing the Player on line 84 but I have no idea if it is or how to change it to recognize the VRTK Player instead of the Valve VR Player
void Start()
{
player = Player.instance;
}
Like I said any ideas on where to start would be greatly appreciated!