Hi there. I have a problem with aiLerp. Somehow when I am moving right aiLerp stutters. Which doesnt happen (as much) when moving left. It has nothing to do with the animation or colliders. I already disabled everything.
Here is the behavior: https://youtu.be/XPB_2RH5CCc
Here ailerp:
This is the code:
private void MoveNodewise()
{
var movementVector2 = new Vector2(_rewiredPlayer.GetAxis("MoveX"), _rewiredPlayer.GetAxis("MoveY"));
if(movementVector2 == Vector2.zero) return;
_currentNode = _movementAbility.GetCurrentNode();
var nextNode = _currentNode?.GetNextNodeInDirection(movementVector2);
if (nextNode is not null && nextNode.transform.position != _aiLerp.destination)
{
_aiLerp.destination = nextNode.transform.position;
}
}
In the coordinates seem fine when I debug ailerp. I cannot explain that behavior.
Any path interpolation config doesnt help either.
The hickup animation is due to the velocity of ailerp increasing btw. I set the value to a float in the animation controller to switch between walking and running.
Has anyone any idea?