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

Use simple pinch end threshold avoiding repeated pinch starts #5609

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

mrxz
Copy link
Contributor

@mrxz mrxz commented Nov 14, 2024

Description:
A partial revert of 8341329 fixing #5505.

Having a fixed pinch end distance that is larger than pinch start should avoid any repeated pinch start events. The original change was made to reduce/avoid a pinch being too "sticky", so I've kept the new pinch end distance closer to the pinch start than before as a compromise.

Main goal is to get the pinching behaviour in a reliable and working state again. Other solutions can be explored either in community components or incrementally refined in the core.

Changes proposed:

  • Replace dynamic pinch end distance threshold criteria with fixed threshold

@dmarcos
Copy link
Member

dmarcos commented Nov 18, 2024

I think this needs some adjustment. Tried with this on Meta Quest 3

https://glitch.com/edit/#!/a-pickle-rick?path=index.html%3A10%3A44

Three script tags. One with this PR, master and 1.6.0. Master and 1.6.0 work as expected. I can pinch and grab the model. With this PR the model spins without control.

@mrxz
Copy link
Contributor Author

mrxz commented Nov 18, 2024

I can pinch and grab the model. With this PR the model spins without control.

That's unrelated to this PR. The model spinning already happened on master, but just got fixed in #5565. This PR didn't include that fix yet, but I've now rebased it. The reproduction in the linked issue (#5505) can also be used to test the change.

@dmarcos
Copy link
Member

dmarcos commented Nov 18, 2024

Thanks!

@dmarcos dmarcos merged commit 4e137a8 into aframevr:master Nov 18, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants