Weapon rotation fail when changed to body root motion

Gubernator

New member
Hello,
when I tried to implement Cover Ability for AI, it was necessary for AI to make a root motion for cover animation. But after implementing root motion, a bug immediately appears with the weapon turning in the opposite direction. Without using root motion, the weapon behaves normally.
Any ideas here where to look?

1707336921368.png1707338254967.png1707338334057.png
 
This looks like an IK issue. You could debug the look ray on the CharacterIK component to see if it is pointing the correct direction.
 
You can adjust the hand IK weights so it no longer adjusts to the look direction. I believe that's what I did in the Deathmatch AI Kit.
 
Top