- Home /
What would be the best way to do pathfinding on a random object that rotates and moves.
Hi, I want to do pathfinding on a rotating "planet", similar like the enemy's do in mario galaxy, except the planets are rotating so. What would be the best way to do it? The planets come in different forms and it is necessary that I place the waypoint with code. That is because I need to do it with code for my assignment and also I want to make an object pool of waypoints that get placed on the planet the player is currently on.
So is A* the best way to go? I was thinking about the technique I should use and I thought of placing every waypoint on a vertex of the model. But some models can get prety high in vertexes so isn't that really heavy if I have that many waypoint and then use them for path finding?
Or is there a better way of doing it? I was thinking can't you do it based on the uv's of the planet? The only thing is that the uv's have cuts so how can I tell the enemy to also check the cuts of the uv's for a shorter path?
Your answer
Follow this Question
Related Questions
A* Pathfinding issue with directly adjacent nodes. 1 Answer
unitysteer and path 1 Answer
2D Top down pathfinding 0 Answers
Array of variable-length arrays (JS) 1 Answer