aframe-super-hands-component icon indicating copy to clipboard operation
aframe-super-hands-component copied to clipboard

Raycast-intersection grab doesn't rotate object

Open nrgapple opened this issue 4 years ago • 5 comments

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.

nrgapple avatar Jul 27 '19 15:07 nrgapple

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

kikoano avatar Jun 26 '20 02:06 kikoano

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.

auriiolym avatar Sep 11 '20 10:09 auriiolym

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

ianpetrarca avatar May 06 '21 11:05 ianpetrarca

@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

wmurphyrd avatar May 06 '21 15:05 wmurphyrd

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

ianpetrarca avatar May 09 '21 19:05 ianpetrarca