Thanks! This code work fine too... but the codes that you have posted have just a problem, when i try to walk around the entity, some times he have a "bug", he turns to the wrong side. example: i go to the left of the entity and the entity rotate to right to go for the left... Have a way to fix this bug?
I hope that you have understood me.
Thanks!