Giter Site home page Giter Site logo

vrgrabber's Introduction

VrGrabber

VrGrabber is a VR grabber components for Unity.

  • Both-hands interaction (move, rotate, and scale)
  • Z-distance control by thumb sticks
  • Connect objects with a curved line

VrGrabber Image 1 VrGrabber Image 2 VrGrabber Image 3

  • Currently only Oculus SDK is supported (OpenVR will be supported soon).

Demo

Setup

  1. Download the latest .unitypackage from Release page.
  2. Import it into your project.
  3. Add Vrg Left Grabber and Vrg Right Grabber from VrGrabber > Prefabs to TrackingSpace under OVRCameraRig.

License

The MIT License (MIT)

Copyright (c) 2017 hecomi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vrgrabber's People

Contributors

hecomi avatar yoshitaka-xvi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrgrabber's Issues

3d object help

hi, is there a way to import a .obj and use it as the cubes your using in the examples ?

Disable Rotation on "grabbed" Object

Hey,

first of thanks you for providing such a good asset, honestly it works better than the oculus grabber.

Now on to my question. Maybe you have some hint on how to solve my problem.
I want a grabbale not rotating when i grab it. So that the upside always faces on world up.
What i did so far is to set the SetRotation(Quaternion dest) with SetLookRotation(Vector3.forward, Vector3.up) thats what i want but than the object always moves to the end of the line and doesnt respond to the inputs or only response if i'm looking at a specifc angle.

grabber

Thank you and keep up the good work

Best regards
David

Change scene when object is grabbed.

Hello all, I've a question:

Is it possible to go to another scene when you grab a object with your controller? I've seen in the test scene in the inspector that there's a "On Grabbed" section (picture) where you can select scenes. I've tried that, but no success. Can anyone help me with this. I'm new to programming and Unity so I don't really know how to do this. (I'm on the Oculus Go.)
picture of inspector

Increase grabbing zone

Hello!

I'm working on a project with this component and I'm wondering if we can increase the size of the trigger zone. For example, instead of checking collision with a line, do it with a cone.
The point is to make easier the grabbing of an object moving fast.

Thank you in advance for your answer!

How can I prevent the grabbed object to move when I hit the touchpad?

Hi guys, first, you've done a wonderful unity package here!

I'm pretty new to unity and I'm trying to adapt VrGrabber to my context. So this is not really an issue related to your script โ€” it works really well โ€” but to mine.

You are using the OVRInput.Axis2D.PrimaryTouchpad to control the action of moving forward or backward the current grabbed object.
My player movement are also based on OVRInput.Axis2D.PrimaryTouchpad, so the two actions are overlaping ( for now, When an object is grabbed, I freeze the player movements ).

I would like to create kind of a switch allowing my player to select "player movement mod while grabing" or "object movement mod while grabbing".

But I can't find out which par of your script is responsible for moving a grabbed object forward or backward, could you point it for me please?

Many Thanks,
Camille.

Change grab button on Oculus Quest

Everything works fine except I can't find where I can change grab input. Is it possible to change from primaryhandtrigger to primaryindextrigger?

Oculus Go

Will this implementation work for oculus go?

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.