Now i play a walk animation on the armature, arms move up and down, weapon moves up and down as well, so far so good. The problem is the weapon lags behind, i mean hand goes up weapon goes up like 1/10 of a second later. this causing unwanted/annoying behavior/looks.
All the transforms are correct also tried to set the animations to linear/brezier/etc, gets a little less but that is due to the smoothing of the animation, i personally think that the empty is ‘lagging’ behind, but i’m not sure.
Anyone know a solution for this? (video few posts lower)
could it be that you pressed o by accident? the key is too close to p and activates proportional editing. maybe you animated the object with that active?
ok, so it’s not a simple mistake.
could be code or a bug. have you tried unparenting it and parenting it again to see if it fixes the problem? could it be that the origin of the weapon is at a different position than the empty?
edit: also, do you remember when the problem started? what was the last thing you changed before it happened? has it always been like that or is it something recent?
it seems to be a problem with parenting.
another solution is to give the object it’s position and rotation manually.
you have your add script, and then a script that moves the weapon every frame like this:
this every frame, could be in the weapon object, or a script that finds all the weapon objects and applies the changes in a for loop.
it’s essentially the same as parenting, except you are the one doing the calculations.
then there’s a problem with the armature or the empty. we know it’s not a bug because it works in other armatures, so it MUST be something that you changed by accident.
try creating a new armature and empty and compare the settings on both to see if you find something that’s different in armature, bone or object tabs.
it could also be a problem with a bone modifier if you have one for the arm.
could also be something in the scene/world tab. they added a bunch of new features and changes to armature in new upbge versions.
OK this is a bug in BGE 2.79 itself. Just downloaded UPbge 0.2.4 and there the test file works correctly, going to see if i can swap my project to UPbge.
ok, i can confirm. bug is present in 2.77 but not in upbge 0.2.2. but must be recent since i remember using parent to bone and it working correctly.
glad you could fix your problem.
moving to upbge should be easy, the only difference is in python keys and a few changes to KX_world.
I know, inputs, asynchronous, etc has changed, rewrote those scripts, animation are broken now so need to redo that as well. But they did fix my libload issue, so i think i gonna need a few days rewriting stuff and then upbge is a go.