Obstacle avoidance without rotating character
Hey,
I am making an enemy controller. It moves simply by using a "transform.posistion += moveDirection ( Vector3) speed Time.DeltaTime"
I want it to be able to avoid obstacles, but all simple versions of these use rotating the character if a raycast hits an object.
I have a target position which I simply use "target.position - transform.position" to find the "moveDirection". All I want to do is slightly adjust that direction if it hits an object, such that it will go one side or the other of the object.
What makes this a little difficult as that although the object doesn't rotate to move, sometimes it does rotate (Like Super Paper Mario).
Any ideas or points in the right direction would be amazing, as I'm pulling my hair out at this point!!
Unfortunately not. I ended up having to scrap that idea. If you find anything, feel free to share here!
Your answer
Follow this Question
Related Questions
how to make Enemy AI to spot player position and hit his hand at that position C# 1 Answer
How to make more realistic bot AI? 2 Answers
Will this work? 0 Answers
Enemy AI. How to make the AI chase the player by using the exact same moves as the player. (2D) 1 Answer
How to prevent AI from going Backwards 0 Answers