teleporation (on rig) breaks pinching #71

Open
opened 1 year ago by utopiah · 1 comments
utopiah commented 1 year ago
Owner

Consider checking in getClosestTargetElements() if #rig is not at origin anymore then take into account that offset when measure the distance.

See https://github.com/aframevr/aframe/issues/5182

Consider checking in `getClosestTargetElements()` if `#rig` is not at origin anymore then take into account that offset when measure the distance. See https://github.com/aframevr/aframe/issues/5182
utopiah added the
bug
core interactions
labels 1 year ago
Poster
Owner

Specifically getClosestTargetElement() in pinch related events kind of works :

selectedElement = getClosestTargetElement(
    document.querySelector("#rig").object3D.position.add(event.detail.position )
)

Tested by doing jxr qs #rig sa position 0 0 10 then at that position jxr qs #rig sa position 0 0 0 to go back, which worked, but introduced a vertical offset. Might be related to the adjust-height-in-vr component but probably not as it's only done once entering VR.

Specifically `getClosestTargetElement()` in pinch related events kind of works : ```javascript selectedElement = getClosestTargetElement( document.querySelector("#rig").object3D.position.add(event.detail.position ) ) ``` Tested by doing `jxr qs #rig sa position 0 0 10` then at that position `jxr qs #rig sa position 0 0 0` to go back, which worked, but introduced a vertical offset. Might be related to the `adjust-height-in-vr` component but probably not as it's only done once entering VR.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: utopiah/text-code-xr-engine#71
Loading…
There is no content yet.