#IK WeaponBone is not getting offset

1 messages · Page 1 of 1 (latest)

languid dragon
#

PoseSampleLayer's Default Weapon Pose adjusts the WeaponBone, but not the IK Weapon Bone which always spawns at the root of the character and rotates with the pivot. IK WeaponBoneRight and Left are working just fine. Nothing I have tried has gotten the bone to move from this spawn point.

rough siren
languid dragon
#

Yes, this is the setup

#

When I set default weapon pose to anything it seems to be ignored and just places the IK Weapon bone with an offset such that if the camera stares straight ahead, the IK WeaponBone is in the same position as the animator root bone

#

The WeaponBone transform appears to move with the default weapon pose parameter, but the IK Bone does not seem to do anything with that information. I'm wondering if the system somehow doesn't have the two paired up, but I'm not sure where that reference could get messed up

#

Turning off all the layers other than the pose sampler also doesn't fix the offset issues

languid dragon
#

Yep!

rough siren
# languid dragon Yep!

Alright, this is quite unusual. You could try enabling Overwrite Weapon Bone property in the pose sampler layer, and make sure to re-start the game after making changes to the Default Weapon Bone, because the system applies changes when a profile is linked/weapon is equipped

languid dragon
#

I think I’ve given that a shot before as well, I’ll give it another shot when I’m back at my computer

languid dragon
#

oh sorry that's a checkbox I've already got on, the SWAT demo character works just fine for me and as far as I can tell, this character I've made has everything set up identically, but I just cannot figure out what's up with the IK WeaponBone in this scenario, I can give a look through the code and see where its getting set to this value

languid dragon
#

hmm I might be getting somewhere, but not certain, there seems to be a typo at line 160 of PoseSamplerLayerState.cs

#

though I may also just be missing something with what's going on there

#

changing this has the IK Weapon Bone in a place that resembles correct, but rotating the player on the yaw axis seems to cause problems

languid dragon
#

Ok I don't have a full answer to what's going on, but in AdjustWeaponBone(), my weaponBoneLeft seems to be stuck to my character's left foot. I don't see any code causing this and when I select the actual IK WeaponBone Left object, its just sitting where it should be on the player's left hand

#

Okay it looks like the index values for my KRigElements are out of whack or something, since the indices are not aligned with what they are in hierarchy

languid dragon
#

I think this is stemming from my root object not being the root transform of my rig, I will try rerunning the setup with a new rig

rough siren
rough siren
languid dragon
#

Oh I might not be on the latest, I just installed it like a week or so ago