- Home /
Question by
RehanSanish · Sep 15, 2021 at 09:50 PM ·
distanceastar
How to calculate distance between 2 objects and then set it as a target in A* Destination Setter
Basically I want the script to make it so that if the player is close enough to the object then the object will change target in A* Destination Setter from the mainpoint to the regular player. If player reaches out of range then the object will return to mainpoint. Anyway to do this?
Comment
Your answer

Follow this Question
Related Questions
How to calculate distance based on A*? 2 Answers
C# Creating a 2d boundary 1 Answer
Make one long distant object visible for camera 0 Answers
Enabling and Disabling gameobjects 1 Answer