Skip to content

Fix joints in hand-tracking-controls not having the correct world position #5699

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jinglechen2287
Copy link
Contributor

Description:
Component hand-tracking-controls with the "dots" modelStyle has not been displaying correctly since A-Frame 1.6.0. This is because "wristObject3D" is introduced, and all child elements of the hand, including jointEl, are reparented to be the children of "wristObject3D" through addChildEntity(). However, setting the correct position of jointEl is handled in updateHandDotsModel(), so it's not necessary to attach them to wristObject3D.

Changes proposed:

  • Add a flag to each jointEl to prevent them from reparenting.

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.

1 participant