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

Control the child model drag of gltf model #221

Open
zyyquanquan opened this issue May 15, 2022 · 1 comment
Open

Control the child model drag of gltf model #221

zyyquanquan opened this issue May 15, 2022 · 1 comment

Comments

@zyyquanquan
Copy link

I have a gltf model that can control the whole drag. At present, I think I can control the drag of sub models in the model. I didn't think of a good scheme

@wmurphyrd
Copy link
Member

You might try something like https://www.npmjs.com/package/aframe-gltf-part-component to break up the gltf model into separate entities that can each be draggable. If you nest the submodel entities within the larger model entity, the super-hands will handle both dragging them all together when you move the whole model and moving the individual parts when you grab them

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

No branches or pull requests

2 participants