- Home /
AI for check obstacle
Currently I am making a game that have a player controlled by move left and right (user arrow on keyboard). The goal is to avoid walls in front of player by controlling player to left and right. I know I am very new in using Unity and Game Development, I am just curious on how using AI in a game. So thats why I want to know how to controlling the player using AI (not using input keyboard arrow left and arrow right). I have do some research in google, and suggest using Pathfinding A*. But it's look like difficult to understand and implemented on my game. All I want is detect if there is a wall in front of player, if wall is available the player move to left or right. Just it. The question is, what kind AI to implementation that ?
Your answer
![](https://koobas.hobune.stream/wayback/20220612080549im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Character Controller Is Lagging Behind Enemy 2 Answers
Enemy controller.move script slows down and speeds up. How to get it consistent? 0 Answers
Character Controller can pass through Collider 1 Answer
How do I call string to hash on anystate animator controller 0 Answers