Giter Club home page Giter Club logo

Comments (3)

hanisherif1997 avatar hanisherif1997 commented on May 13, 2024 3

I figured out the solution.
First Go to the gameobject (eg. ground) on where you have added the teleportation area.
Expand the teleportation area and here you will find 'teleportation trigger'. By default it will be 'on select exited'. This means that the teleportation is triggered when the SELECT button is exited (or you release the select button). So the next obvious thing to do is to configure the SELECT button.

(Remember to install the input system package through package manager and import the XRI default presets before proceeding. Watch the video if you don't know how to do this:
https://www.youtube.com/watch?v=wnn-dzHz-tA&list=PLwz27aQG0IIJ8cPM-npX2AJ6Nb-MruYP3&index=1
Watch from time stamp 3:23 to 08:26)

in the project window : search for 'xri default input actions'. Go to XRI Left Hand and here you will fiind the 'SELECT'. By default it will have gripPress. You can add the required binding here by understanding the correct 'input Feature Usage'.

For example: if you want the button Y on the left hand controller, you know that the input feature usage is 'secondaryButton' (this can be found out in the 'XR input mappings' table available here.

click the plus icon on the right side of the 'SELECT' and add binding. check Generic XR controller. In the path go to: XR controller<Xr controller left hand<Optional controls<secondaryButton.

Note: if you don’t want to mess up the select button, then create a child empty game object of the XRRig and name it teleportation. Then add the required components along with the XR base controller for teleportation to work. In this XR BASE controller, change the Select action button to custom button that is defined in the XRI default input actions. (U can add ur own new actions here and set it to the select)
watch this video and go to the time stamp: 09.10
https://youtu.be/9dc1zq8eH54

from xr-interaction-toolkit-examples.

ericalbers avatar ericalbers commented on May 13, 2024

XR interaction toolkit is in preview for a reason, its really not flushed out and ready for use.
Imagine it was written by a part time summer student who came into work every other day or so and hung out.

from xr-interaction-toolkit-examples.

Gusinuhe avatar Gusinuhe commented on May 13, 2024

Actions (such as Hover, Select, and Activate) which are what trigger the teleportation can be mapped to specific inputs in the XR Controller component. You can use this page to help you figure out what binding corresponds to what input in your device.

from xr-interaction-toolkit-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.