Hi, my player is able to push another AI actor when both, the player and the AI is playing a Anim montage, how can I fix this?
For a bit of context, some of my animations are using root motion and some are using force root lock, although both of them are giving me this issue. Any suggestions would be great even if your not sure if they will work or not. Thanks!
Basically when the player and another actor is playing an anim montage, the player will push the other actor.
For example, if the player is playing a dodge Anim montage and an AI is playing an attack Anim montage, the player will push the AI backwards instead of going around it. In RPG games, when you forward dodge an enemy attack you will roll around the enemy, but mine pushes the enemy backwards.
Iām just trying to figure out how to stop the player from pushing the enemy when playing an animation montage.
If in a game, a dodge animation does not move in the direction you press, it is coded to berhave in that way. For example, before dodging, our AI send out line traces in different directions to check for obstacles then adjust movement accordingly. You could disable collision but the result would be the player going through the AI rather than around. Intelligent behavior requires intelligent programming.