- Home /
Mix up coordinates for greating new path?
I have player who randomly walk from coordinate (0,0) to (3,3); After reaching (3,3) its spawn pack to (0,0) It pick up coordinate of ease path. When it's walked ten times its calculate two sortest path. How do i mix up these sortest path to one path?
I use Strings to store cordinates, but i convert them to int.
I dont know what kind off information be need't to solve this.
Sorry my language, i hope you understand :)
I don't understand what you mean by "mix" the two shortest paths. Why don't you just pick ONE of the shortest paths?
I try to do something like program what can learn path. I know its not usefull but i want learn new thinks :) Now i try if it rand witch path it take in every crossover points (0,0), (2,1) and (2,2). $$anonymous$$ayby this work, mayby not..:)
I'm still not clear on the question, but if you are looking to write a program to find the shortest path, there has been $$anonymous$$UCH work done on this so far: http://en.wikipedia.org/wiki/Shortest_path_problem I suggest you take a look at what others have done, as a first step.
Yes i try solve shortest path, but with Genetic Algorithm. But i dont even know am I in correct path :) Hopely everything is going well(yet). I need read page you linked, mayby there is something what help mayby not :)
Your answer
Follow this Question
Related Questions
Problem with the climbing of stairs ( character piloted by coordinates) 0 Answers
How to get the points/path around the curves of the track 0 Answers
Gameboard, next position on a path 2 Answers
How to effectively compare two 3d paths? 1 Answer
Export camera path (first person controller) in x,y coordinates 2 Answers