- Home /
How to create waypoint between two gameobjects according to variable value?
Hello, I am looking for any idea as to how I would go about getting an object to ray casting between to objects? I had in the past managed to cast from my left mouse button clicking position to my main camera, which worked for basic AI navigation but I now need to make a script that allows me to tell an ai game object to automatically go towards another object called "food" when my hunger variable reaches a value of 60-100%. Thanks in advance for any advice or tutorial links <3 Please try and keep it simple as I'm trying to learn :)
Your answer
Follow this Question
Related Questions
WayPoints mixed with Raycast 1 Answer
Using box collider to determine if AI should stop help 1 Answer
Not sure what this error means? 1 Answer
Trouble with raycasting 1 Answer
Have falling object exit from a collider after collision? 2 Answers