Topic was automatically imported from the old Question2Answer platform.
Asked By
linuxfree
Old Version
Published before Godot 3 was released.
I have 3D model character with action animations walking, running, idle, jumping,damage and have a 3D model gun. How i can attach gun to my hand bone of my Character 3D?
Boneattachment i dont know how attach to my bone hand list of skeleton.
I dont know how to attach it, but before i had a similar question about that. What about create a skeleton with the gun already, i mean by fusion the 3D models in only 1 and when the Char/player picks the gun change the 3D model, I think is less of a headache and it will look much better done than with bones attachments.
But i dont even know if this is possible, to change a 3Dmodel to another one. so get some info about this if you want.
Sorry for not being useful. :DDD
Add BoneAttachment node to your skeleton and select proper bone. Everything that is child of this BoneAttachement will move in correct way: https://giphy.com/gifs/godot-l2SqhLbJqx70X4H6g
do you can tell example please? i need set bone matrix? or what? my bone name is hand_r hand right so if i move my arm_r arm right the hand_r parented will be move thanks obs: boneattchment i know my problem is how select proper bone need create code?
linuxfree | 2016-09-22 22:04
I added an animated gif to the answer
kubecz3k | 2016-09-23 10:34
Oh friend but my godot dont show list of bones.i export from blender what godot version you using? Thanks a lot for gif
linuxfree | 2016-09-23 11:13
Make sure the BoneAttachment is a direct child of the skeleton node.
CowThing | 2016-09-23 12:00
Also make sure you are exporting with better collada plugin (its available to download from Godot website. After exporting you should have .dae file which you should import with Import>Scene options)
kubecz3k | 2016-09-23 12:18
in my godot appear in skeleton names of bones cause i import makehuman model to blender fbx file then i create animations actions without gun armature is better work with one armature for create actions animations in dopsheet editor.Well im using godot 2.2 alpha compiled and may be i put boneattachment node in armature first time will go check thhat after back of travel in 2 weeka.thanks a lot
linuxfree | 2016-09-23 13:33
yes friend i know that will made all processe again in 2 week.thanks a lot