-
I want to parent a mesh to a bone on another mesh. For example a hat to an animated character model's head/neck. |
Beta Was this translation helpful? Give feedback.
Answered by
jnsmalm
Oct 24, 2021
Replies: 2 comments
-
Yes, it's supported. You can access the joints/bones from the skin property of the mesh. A joint is pretty much a Container3D, so you can add children to it. let head = model.meshes[0].skin.joints.find(joint =>
joint.name === "name_of_head")
head.addChild(PIXI3D.Mesh3D.createCube()) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Unwarped
-
Awesome! Thank you jnsmalm it works perfect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it's supported. You can access the joints/bones from the skin property of the mesh. A joint is pretty much a Container3D, so you can add children to it.