Skip to content

Changing the distance of dragged objects #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JeffBail opened this issue May 29, 2018 · 3 comments
Closed

Changing the distance of dragged objects #45

JeffBail opened this issue May 29, 2018 · 3 comments

Comments

@JeffBail
Copy link
Contributor

I really like the way Oculus Dash allows you to pick up a window, drag it around and then move it closer or further away from you so you can hang it in just the right position and size. I'm going to play around with adding support for this in Draggable.cs from the 3DDrag example. Although I'm using Dash as an example I'm not planning on working with windows or desktops from the OS; I'm just going to move around GameObjects which are already in the scene. If anyone has worked on something similar or has suggestions on a better way to go about it please let me know. One initial concern I have is recognizing which controller is doing the dragging; for now I think I'll assume everything is right handed.

@JeffBail
Copy link
Contributor Author

I've made some progress on this and I'll submit a pull request when I have something put together.

@lawwong
Copy link
Contributor

lawwong commented Jun 13, 2018

6ba68b4

@JeffBail
Copy link
Contributor Author

Thanks so much for refactoring this class with the scroll support and sorry I never submitted a PR for my work; although the prototype was working I didn't get the chance to fully debug it. I did submit Pull Request #50 for Issue #49 which is a simple fix to allow the scroll delta to be tuned. I found that in my scene I had objects that were really far away which were difficult to scroll effectively without changing the delta. I made the delta a member of the class so it can be easily changed and live tuned in the Editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants