Skip to content

Parenting a mesh to another meshes bone #61

Answered by jnsmalm
Unwarped asked this question in Q&A
Discussion options

You must be logged in to vote

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())

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Unwarped
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants