Slow Movement

Hello; when I implement the following code, the speed of my character becomes slow, I have to use the multiplier per 5 times to see speed increment. Thank you

var playerToClickPoint = currentClickTarget - transform.position;

if  (playerToClickPoint.magnitude  >= walkMoveStopRadius)
{

	m_Character.Move(playerToClickPoint, false, false);

}
else
{
	m_Character.Move(playerToClickPoint, false, false);
}
m_Character.Move(Vector3.zero, false, false);

I have the same issue, I haven’t been able to figure out why it’s happening yet.

Privacy & Terms