Code Monkey home page Code Monkey logo

vr-comfort-ramps's Introduction

Standing on an incline in VR causes motion sickness. This is because a player's horizontal movements within their playspace translate to vertical movements in VR. This prefab solves the problem by replacing the inclined collider with a flat one while the player's only motion is in playspace.

HOW TO USE:

  1. Drag prefab into scene anywhere and unpack
  2. Find the "Ramp" field in the "program" object, and drag in the ramp collider you want to replace
  3. To toggle the comfort functionality at runtime, simply deactivate/activate the "program" object

If desired, delete:

  • example ramp mesh

  • example collider ramp

  • Demo UI panel

  • debug object & children

  • You may use multiple instances of the prefab in your scene with no issue.

  • You may combine multiple ramp colliders into a single mesh collider to be used in one instance of the prefab, subject to warnings below.

WARNINGS:

  • Beware of unforseen physics simulation consequences! While the local player stands still, the "Ramp" collider you specify will be disabled. This means rigidbodies on that will fall down. There are other possible edge cases like raycasts.
  • Players may use the flat collider to pass through your ramp collider completely, or to hover above the ground and climb on top of things unexpectedly. Be cautious using this prefab in any game or puzzle world where cheating is a concern.

vr-comfort-ramps's People

Contributors

jokerispunk avatar penify-dev[bot] avatar

Watchers

Robert Bongart (MSc MSc MA) 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.