Skip to content
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

hand interaction scaling #682

Open
peterclemenko opened this issue Sep 24, 2024 · 2 comments
Open

hand interaction scaling #682

peterclemenko opened this issue Sep 24, 2024 · 2 comments

Comments

@peterclemenko
Copy link

the ability to scale an object with a hand interaction would really help for ux development

@Malcolmnixon
Copy link
Collaborator

It should be possible to create a "grab-scaling" script/node that can be attached as a child of an XRToolsPickable node which:

  1. Subscribes to the XRToolsPickable.grabbed and XRToolsPickable.released script
  2. Interrogate the XRToolsPickable._grab_driver to see if its being held by two hands
  3. Scales by the distance between the two hands

If that works then we'd probably want to expose an XRToolsPickable.get_grab_driver() method rather than having the script reach in to the private _grab_driver field.

@peterclemenko
Copy link
Author

That sounds ideal.

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