Get speed of an agent

Hi, how can I get the actual speed of the agent?

Hi, if youre using AIpath, you can go like

float speed = myagent.GetComponent<AIPath>().maxSpeed;

but this is only the max speed. With Debug.Log(speed); in Update() the speed value is always 10 (like the max speed in AIPath component).

You can use the velocity property on the movement script.