Hi,
I’m a new user evaluating the latest free version of A* under Unity 4 Pro before buying.
My use case is procedural level design with a need to auto create the graph after level creation/regeneration.
I checked the forums for similar questions and see you generally point to http://arongranberg.com/astar/docs/writing-graph-generators.php and to roll your own graph generator as the solution, then scan after creation.
I have a couple of questions.
My test case is a simple maze created in XZ from prefabs. Should I use a new graph generator based on grid or points as best for this?
At some point I may layer these for a 3D maze test as well, but in the first instance I just want to check pathfinding in a 2d maze case.
I tried to run the above graph generator polar graph tutorial but it has a few errors, which makes things a little confusing when trying to get to grips with the package.
- It should be using Pathfinding.Serialization.JsonFx; not JsonFx.Json I think?
- After fixing this I still get two errors on int3 ie: nodes [0].position = matrix.MultiplyPoint (Vector3.zero); gives error “Assets/Scripts/PolarGraph.cs(29,27): error CS0266: Cannot implicitly convert type
UnityEngine.Vector3' to
Pathfinding.Int3’. An explicit conversion exists (are you missing a cast?)”
ty!