Move entity

Good afternoon, I have a problem, does anyone know how I can make a mobile entity go to a fixed entity automatically but still be able to see the movement?

Hi @Lendork!

First you need to rotate the entity in the direction of the destination. If you use a kinematic rigidbody you can use lookAt() for this. (Be aware this works backwards).

After that you can move the entity forward. If you use a kinematic rigidbody you can use translateLocal() for this.

If you want to know if the entity reached the destination, you can check the distance() from the entity to the destination.