1
$\begingroup$

What happens is that I have a sword that sits on the hip of a player-controlled knight character. I created a "draw sword" animation where the knight reaches and draws his sword. I have bone constraints so that when the frames align so that the knight's hand reaches the sword, the sword constraints to the knights hand. When playing the animation, out-of-game, everything works fine.

When I hit "P" to play the game I make my character draw his sword, but the sword doesn't move or change its constraint. Things to note are that the sword is an appended object from another file.

Does anyone have any experience with this issue and can help me fix it?

$\endgroup$

1 Answer 1

0
$\begingroup$

I read that, in the game engine, Child of is partially supported- you can parent to objects but not to bones.

Add an empty to the character's hand bone and also have another at the hip where the sword rests when sheathed, parented to the hip bone.

Then you could try parenting the sword armature (using child of constraint) to the empty. You could also try with the sword object itself, without the sword's armature.

$\endgroup$
2
  • $\begingroup$ Two questions: When you say parent an empty to the hand, do you mean the body? My entire knight body is on object with no separations. Secondly, when you say "parent the sword to that" do you mean the sword object or the sword armature? $\endgroup$ Commented Jul 9, 2018 at 14:31
  • $\begingroup$ edited the answer for clarity $\endgroup$
    – Moshi
    Commented Jul 10, 2018 at 1:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .