Coder Social home page Coder Social logo

godot-vr-simulator's Introduction

Godot XR Simulator

Simulate XRController3D and XRCamera Input

First Steps

  • Setup your scene for VR. You can start by following Bastiaan Olij's tutorials https://www.youtube.com/watch?v=wDXnsy2IH1A

  • Insert XRSimulator.tscn into your scene, and then assign your XROrigin into the XR Origin parameter.

How to setup a VR Simulator

Camera controls

When you play the scene, your cursor will be locked in the screen. Press Esc whenever you want to release the cursor.

  • Move your mouse to look around
  • Scroll to move the camera up and down

Joystick controls

  • Press WASD to move the left controller's joystick
  • Press the arrow keys to move the right controller's joystick

Selecting a controller

Selecting a controller allow you to move, rotate, and press a button of the selected controller.

  • Hold Q to select the left controller
  • Hold E to select the right controller

Moving and rotating the controllers

  • Move your mouse to move the controller
  • Scroll to move the controller closer or further away from the camera
  • Move your mouse while holding Shift to rotate the controller

Trigger and Grip

  • Hold Left Click to press Trigger (trigger_click will be pressed and trigger will be set to 1)
  • Hold Right Click to press Grip (grip_click will be pressed and grip will be set to 1)

Other buttons

Pressing 1 to 8 (on the alphanumeric keyboard), -, = and Enter will press or touch buttons on the OpenXR Action Map. On an Oculus Touch controller, pressing 1 presses Y and B, 2 presses X and A, - presses the primary joystick, and Enter presses the menu button. Keyboard

Action mapping

  • 1 presses by_button
  • 2 presses ax_button
  • 3 presses by_touch
  • 4 presses ax_touch
  • 5 presses trigger_touch
  • 6 presses grip_touch
  • 7 presses secondary_click
  • 8 presses secondary_touch
  • - presses primary_click
  • = presses primary_touch
  • Enter presses menu_button

As stated before, pressing Left Click presses trigger_click, and Right Click presses grip_click.

godot-vr-simulator's People

Contributors

cafezinhu avatar

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.