- Home /
get the bone position of the skeleton character and attach something to that bone position
Hi, Is there any way to get the bone position of the skeleton in Unity. How can I attach something like weapon to that bone?
Answer by Bunny83 · Feb 22, 2011 at 06:25 PM
Bones are also GameObjects. You can use transform.Find() to go down the path of the bone hierarchy and attach your weapon/object by setting it's parent. After parenting you might want to set the localPosition to Vector3.zero and localRotation to Quaternion.identity to align and move the weapon/object to the bone. In such cases it's common practise to add a weapon bone to the rig and attach the weapon to this bone.
Your answer
Follow this Question
Related Questions
Attach collider to bone, how to? 3 Answers
Attach object to bone ingame. 1 Answer
Attach object to avatar bone 1 Answer
attaching armor to bone in proper position !!! help! 2 Answers
Attaching an object to a bone? 3 Answers