Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Milkca's avatar
Milkca
Honored Guest
4 years ago
Solved

Can't teleport with both hands

Hi,

I'm using the scripts from the Locomotion Sample Scene to teleport on nodes with both hands.

This is the "Teleport Input Handler Touch" configuration in the scene.

 

When I'm using the RightHand, everything works fine.
But with the LeftHand, the ray become green, the "TeleportDestination" object appears on the targeted node, but when I release the Trigger, nothing happens.
The problem is the "_teleportDestination.IsValidDestination" in the LocomotionTeleport.cs script line 566.
For some reason it is set to false, but I can't figure out why and when.

Excuse my english and thanks for the help.

  • So, the problem was the aiming controller.
    For some reason even if "Touch" is selected, orking controller is the Right one.
    At first, I modified the "GetAimData" in "Teleport Input Handler Touch" to aim with both Left/Right controllers.
    But, I suppose it was only visual and the real destination point was calculated from the Right Controller.

    So I've created a reference to the script in my ControllerChange function and set the Aiming Controller variable to Left and Right.

1 Reply

Replies have been turned off for this discussion
  • Milkca's avatar
    Milkca
    Honored Guest

    So, the problem was the aiming controller.
    For some reason even if "Touch" is selected, orking controller is the Right one.
    At first, I modified the "GetAimData" in "Teleport Input Handler Touch" to aim with both Left/Right controllers.
    But, I suppose it was only visual and the real destination point was calculated from the Right Controller.

    So I've created a reference to the script in my ControllerChange function and set the Aiming Controller variable to Left and Right.