r/oculusdev • • May 30 '23

Disable and Enable TeleportInteractor? (Interaction SDK)

Hi!

I'm trying to make it so the player cannot teleport unless they are in the center of their play area. I have a system that detects the player's location, then sends Disable() or Enable() to all the relevant interactors (on each hand: Teleport Interactor, Turner Interactor, and the Best Hover Interactor Group in their parent). However, this does not seem to do anything.

I tried an alternative solution that just Activates or Deactives the "LocomotionHandInteractorGroup" parent outright. This actually does stop the player from teleporting at unwanted times! However, it gets really janky. UI is floating all over the place! This is fixed by jiggling your hands a bit, but that's too janky and confusing for the player.

The way I'm detecting the player's location is by using the TransformActiveState and ActiveStateUnityEventWrapper scripts from the FirstHand demo.

Any tips on how to properly stop the player from teleporting? Thanks!

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Interaction_Docs_Guy Jun 15 '23

Unfortunately we don't have any docs about ActiveState. I just realized that yesterday when I needed to learn about them, too. I'll ask the team about your problem and also prioritize writing some docs about ActiveState and its components. Once I have an answer to your question or docs published that answer it, I'll reply here. Thanks for your patience and for sharing your feedback!