In this video we see how to move a GameObject to a target position in Unity.
For that we use the MoveTowards functions from Vector3, a function that requires three parameters, the current position, the target position and the distance to move from the current position to the target position, for that distance you can use the movement speed multiplied by Time.deltaTime.
This solution could be useful to create an enemy that follows the player in Unity.
____________________________________________________________
PORTFOLIO: https://gamedevtraum.com/en/portfolio...
CONTACT: / gamedevtraum
LINKEDIN: / gamedevtraum
DONATIONS
-You can download one of me free assets for Unity from my ITCH page and leave a donation
-You can donate with the THANKS button on every video
____________________________________________________________