Skip to content

How to use (for Unity3d)

Boris edited this page Dec 19, 2015 · 3 revisions

On this page you will find all the information on setting up A* 3D pathfinding algorithm in Unity3d, using Visual Studio. Just follow these simple steps:

  1. Start a new Unity3d project;
  2. Put all the scripts from Unity3d folder in this repository, and put them into your Assets folder inside of your newly created Unity project. To do this you can download whole repository as a ZIP file, then extract Scripts folder to something like C:\Users\Public(can be different in your case)\Documents\Unity Projects\{name of your project}\Assets
  3. Create an empty game object and call it Game or whatever. Then apply Game script to it (location: Assets\Scripts).
  4. Apply OrbitCamera script (location: Assets\Scripts\Camera) to main camera which was probably pre-created in your scene. Otherwise, just create one yourself. After that, create one more empty game object and set its position to something like (5, 5, 5) or whatever. Go to Main Camera Inspector and then to component called Orbit Camera (Script). Choose your camera target object as camera target.
  5. Hit Play and enjoy the ride.

Clone this wiki locally