c-frame / aframe-super-hands-component

👐All-in-one natural hand controller, pointer, and gaze interaction library for A-Frame
https://c-frame.github.io/aframe-super-hands-component/examples/
MIT License
354 stars 71 forks source link

Raycast-intersection grab doesn't rotate object #164

Open nrgapple opened 4 years ago

nrgapple commented 4 years ago

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 commented 4 years ago

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

auriiolym commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@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.