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

Raycast-intersection grab doesn't rotate object #164

Open
nrgapple opened this issue Jul 27, 2019 · 5 comments
Open

Raycast-intersection grab doesn't rotate object #164

nrgapple opened this issue Jul 27, 2019 · 5 comments

Comments

@nrgapple
Copy link

When grabbing an object with the raycaster the object only moves positionally. It would be nice if there was an option to update its rotation also, based on the raycaster's direction.

@kikoano
Copy link

kikoano commented Jun 26, 2020

This is my most needed feature. I want to rotate objects from distance.

@auriiolym
Copy link

I have created a monkeypatch for this. However, since it's in the context of my work I can't simply share it. I'm looking into open sourcing more of my work, so I'll get back to this when I've handled the involved bureaucracy.

Ping me if I haven't given a response by December 1st. I know that's very late for you two, but perhaps not for people looking for this in the future.

@ianpetrarca
Copy link

I have created a monkeypatch for this. However, since it's in the context of my work I can't simply share it. I'm looking into open sourcing more of my work, so I'll get back to this when I've handled the involved bureaucracy.

Ping me if I haven't given a response by December 1st. I know that's very late for you two, but perhaps not for people looking for this in the future.

Hey @auriiolym any chance you would be willing to share this code snippet? Looking to integrate rotation into my Aframe / Superhands projects

@wmurphyrd
Copy link
Member

@ianpetrarca if you use physics, you get the rotation-at-a-distance for free. For a solution without physics, somwhere I have a version of grabbable that does all the matrix math to simulate reparenting for 6DOF grab - I'll try to find it for you

@ianpetrarca
Copy link

@ianpetrarca if you use physics, you get the rotation-at-a-distance for free. For a solution without physics, somwhere I have a version of grabbable that does all the matrix math to simulate reparenting for 6DOF grab - I'll try to find it for you

Thanks @wmurphyrd . I implemented the physics rotation as you described above. Still interested in a non-physics, more optimized grab. If you still have that alternative "grabbable" component, I'd love to see it. Thanks for all your hard work. You have been killing it and a incredible resource for years in the WebXR Space.

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

5 participants