2
Creating a Unity Project
13:05
3
Unity project: Transform Component and GameObject Window
9:45
4
Start Unity Programming
12:24
5
Unity project: Setting up Variables
9:19
6
Unity project: Adding Rotation and Input
10:39
7
Unity project: Player Movement
11:17
9
Unity project: Added Jump
15:51
11
Project unity: Rotate our Coins
13:02
12
Unity project: Creating a State Machine
9:46
13
Unity project: Calling States
10:40
15
Unity project: Adding Line of Sight
13:13
Unity project: Adding Enemy Attack
9:36

Unity project: Adding Enemy Attack

3 months ago
123

To make an enemy avoid obstacles, you can use raycasting and steering behaviors. First, figure out where the enemy is moving by looking at where the player is and normalizing the difference between the enemy's position and the player's. Next, cast some rays in front of the enemy to detect obstacles.

Loading comments...