Posted August 05, 2021 by Mallace
For spawning the enemy capsules I used Raycasting to find the world position in camera view then instantiated an object at that position in the world. To make the enemy capsules follow the player I then implemented the MoveTowards function in unity which requires the target position the capsules position with a speed. To find the player I used the "Player" Tag to find the follow target.