void walk(Vector2 velocity)

Used to control the direction and speed of the movement by a given velocity

Source

void walk(Vector2 velocity)
{
    _velocity = velocity;
}