- Home /
Steam VR (Teleport Prefab) doesnt work unless both controllers are on?
Hello,
I am trying to build a game with a simple teleport system using Steam VR teleportation. I could have used different assets such as VRTK but I am already invested in Steams assets.
For some reason, the teleportation doesn't activate when only one controller is on. The controller appears but nothing happens when the Vive Controller is activated. Once both are on they both run properly and the teleporter arc is both visible and works well.
Ideally my project will be usable with just one controller, so any ideas what I can do to fix this?
Tom
Answer by RedRhino10 · Oct 25, 2017 at 10:29 AM
For anyone who may stumble across this on google in the future - the problem was within the "Hands" Script, which uses controller index numbers to identify which controllers are active.
If both controllers have the same number, the controller is "disabled". This is meant to be used for when both controllers are off (They will have a -1 index) however turning on one controller was setting both controller indexes to 2 (when one should be 2 and the other -1)
I can't help with scripting but it is worth putting some debug log code in to see the problem for yourself. By doing this we could change the script specifically for our use case.
Your answer
Follow this Question
Related Questions
When changing the SteamVR controller it becomes grey 0 Answers
SteamVR 2.3 - Vive controllers aren't tracking after scene load 1 Answer
First Person Player controller for Steam VR 1 Answer
SteamVR: Can't use trackpad as d-pad in binding 0 Answers
HTC Vive Controller Twist - Extracting Angular Velocity On The Correct Axis 0 Answers