ExtendRealityLtd / ExtendRealityLtd/Tilia.Interactions.PointerInteractors.Unity

Distance grabbing from a snap zone does not transition

Open
#226 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

If you try and distance grab an object that is snapped in a snap zone then it doesn't transition to the interactor, instead it waits the transition time then instantly snaps.

This is because the object is still snapped into the snap zone until the transition has ended and then the grab happens.

One workaround is to add a `SnapZoneManager` to the internals of the distance grabber and have it unsnap before the grab takes place.

![image](https://user-images.githubusercontent.com/1029673/166436295-a64cfefe-93bc-4dbf-a63a-3257199ce5ee.png)

At present, the PointerInteractors do not have a dependency on the Snap Zone and I'm not sure if forcing that dependency is the best solution long term, so I'll leave this as a workaround for now until I come across a better solution

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.