Skip to content

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

Open
jinglechen2287 wants to merge 2 commits intoaframevr:masterfrom
jinglechen2287:fixHandJoints
Open

Fix joints in hand-tracking-controls not having the correct world position#5699
jinglechen2287 wants to merge 2 commits intoaframevr:masterfrom
jinglechen2287:fixHandJoints

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