Hello all,
I am currently working on a third person RPG and my combat system is feeling great so far. The combat system uses root motion attacks and auto targets the nearest enemy.
However, when the player is in attack range, the root motion will continue to play and eventually slide past the enemy until the animation has ended.
How can I implement a solution to possibly disable root motion when in attack range of the enemy to avoid moving past the enemy?
My attempt was to create a collision box in front of the player so that when it overlaps an enemy, it sets “Set Root Motion Mode” to “Ignore Root Motion”. However, when the enemy dies, the collision is disabled and the box never received an end overlap to enable Root Motion once again.
Should I disable root motion and attempt to use motion warping? Hopefully someone knows a great way to implement this.