Forum Discussion
Milkca
4 years agoHonored Guest
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
- MilkcaHonored 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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 2 years ago