1
$\begingroup$

Whenever I have an object that is the child of the character in the game engine, the object's animations float very high above the intended location.

I will have an animation like reloading, where all that needs to happen is the hand to move back and fourth as to pump the gun like this: enter image description here

But in game, the animation plays out high above the original location like this: enter image description here

If anyone has a solution, please answer. I struggle with this for every animation parented to the character.

$\endgroup$
1
  • 1
    $\begingroup$ The animation for the object is relative to its origin. By parenting the object to another, your basically using that object's origin as the base for your animation. $\endgroup$ – X-27 is done with the network Dec 23 '16 at 4:02
0
$\begingroup$

Animation relations

Animation poses of Location, Rotation and Scale are relative to the Parent. If there is no parent the operations are relative to the scene.

This means when you parent the animated child to an object it will remain where it is. Playing a pose the object will update according the that pose relative to the new parent.

In Blender you can switch to another frame to show the effect e.g. left or right as this updates the object according to the new frame.

Within the BGE you see the effect as soon as you play an action.

Solution

As you do not want that, you should ensure to create the keyframes i while the animated object is already parented.

$\endgroup$
1
  • $\begingroup$ Thank you! Almost everything I've ever needed help with was answered in a thread by you, and I don't know how you answer so many questions. $\endgroup$ – Honda Dec 23 '16 at 5:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.