#IK WeaponBone is not getting offset
1 messages · Page 1 of 1 (latest)
Hi, hmm, is hte IK WeponBone parented to the head bone in your case?
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
Is your character humanoid?
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
I think I’ve given that a shot before as well, I’ll give it another shot when I’m back at my computer
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
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
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
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
Oh wait, are you using the old framework version? The latest update replaced States with Jobs, though the functionality is pretty much the same
I see, you can try removing the Rig Component from the root, apply changes to the prefab, add the component again, refresh hierarchy. Then drag it into the Rig Asset and Import Hierarchy too
Oh I might not be on the latest, I just installed it like a week or so ago